Download the PHP package robole/sulu-video-bundle without Composer
On this page you can find all versions of the php package robole/sulu-video-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download robole/sulu-video-bundle
More information about robole/sulu-video-bundle
Files in robole/sulu-video-bundle
Package sulu-video-bundle
Short Description Preview, extract and embed videos in Sulu CMS
License MIT
Homepage https://github.com/robole-dev/sulu-video-bundle
Informations about the package sulu-video-bundle
SuluVideoBundle
Preview and extract embed URLs from Youtube, Vimeo, Dailymotion and HTML5 videos.
This bundle adds a new content type video and provides the Twig functions video_provider and video_embed_url to embed external videos in an iframe or video element.
Installation
This bundle requires PHP 8.2 or later and Node 18 (or Node 14 for Sulu versions <2.6.0) for building the Sulu administration UI.
- Open a command console, enter your project directory and run:
If you're not using Symfony Flex, you'll also need to add the bundle in your config/bundles.php file:
-
Link the frontend code by adding the following to your
assets/admin/package.json: -
Import the frontend code by adding the following to your
assets/admin/app.js: - Install all npm dependencies and build the admin UI (see all options):
Usage
-
Add the
videocontent type to any of your page templates: - Render the embeddable link in your twig templates:
Background
This small bundle serves as a reference for our blog series "Sulu Bundle Development" showcasing major steps to build a Sulu bundle from scratch. The underlying idea was inspired by the Statamic Video Fieldtype.
Scripts
-
To test the PHP code, run:
composer phpunit
-
To check the coding standards, run:
composer php-cs
- To apply coding standards, run:
composer php-cs-fix
All versions of sulu-video-bundle with dependencies
sulu/sulu Version ^2.5 || ^3.0
symfony/config Version ^6.0 | ^7.0
symfony/dependency-injection Version ^6.0 | ^7.0
symfony/framework-bundle Version ^6.0 | ^7.0
jackalope/jackalope-doctrine-dbal Version *