Search by

azine / video.js-bundle

azine

Video.js asset bundle for Symfony applications.

Package info

github.com/azine/AzineVideoJsBundle

Homepage

Language:JavaScript

Type:symfony-bundle

pkg:composer/azine/video.js-bundle

Statistics

Installs: 1 302

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

2.0.0 2026-08-31 14:54 UTC

README

A lightweight Symfony bundle that exposes the existing Video.js 4.7.2 assets used by Azine applications.

Requirements

  • PHP ^8.5
  • Symfony FrameworkBundle ^7.4

Installation

Install via Composer:

composer require azine/video.js-bundle:^2.0

Enable the bundle when it is not registered automatically:

// config/bundles.php
return [
    // ...
    Azine\VideoJsBundle\AzineVideoJsBundle::class => ['all' => true],
];

Install bundle assets:

php bin/console assets:install public

Symfony installs the bundle public tree below:

public/bundles/azinevideojs/

Public asset contract

The 2.x release keeps these public paths stable:

bundles/azinevideojs/js/video.js
bundles/azinevideojs/js/video.min.js
bundles/azinevideojs/js/video.dev.js
bundles/azinevideojs/js/video.dev.min.js
bundles/azinevideojs/css/video-js.css
bundles/azinevideojs/css/video-js.min.css
bundles/azinevideojs/font/vjs.eot
bundles/azinevideojs/font/vjs.svg
bundles/azinevideojs/font/vjs.ttf
bundles/azinevideojs/font/vjs.woff

The CSS references the font files relatively (../font/...), so the complete css/ and font/ directories must be installed together.

Three accidental multiply-minified JavaScript artifacts from older repository history are intentionally not part of the supported contract:

video.dev.min.min.js
video.min.min.js
video.min.min.min.js

Usage

Reference bundle assets in Twig:

<link rel="stylesheet" href="{{ asset('bundles/azinevideojs/css/video-js.min.css') }}" />
<script src="{{ asset('bundles/azinevideojs/js/video.min.js') }}"></script>

Existing Video.js markup and initialization can remain unchanged; this upgrade changes the PHP/Symfony packaging layer, not the player API or bundled Video.js version.

Development

Run checks locally:

composer validate --strict --no-check-publish
composer update
vendor/bin/phpunit -c phpunit.xml.dist

CI runs PHP 8.5 against both the current stable and lowest supported dependency sets. It also lints PHP and fails on PHPUnit skips, notices and deprecations.

Upgrade notes

PHP 8.5 / Symfony 7.4

  • Raised the runtime requirement to PHP 8.5.
  • Targets Symfony FrameworkBundle 7.4.
  • Replaced legacy Composer PSR-0/target-dir metadata with PSR-4 autoloading.
  • Uses PHPUnit 12.5 and GitHub Actions CI.
  • Tests the complete supported JavaScript, CSS and font asset contract.
  • Preserves the existing bundles/azinevideojs/... public URLs after assets:install.
  • Removes only duplicate generated JavaScript files that were not part of the supported consumer contract.

License

Refer to the source code of included Video.js files for upstream license details. The bundle itself is Apache-2.0 licensed.