PHPackages                             robole/sulu-video-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. robole/sulu-video-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

robole/sulu-video-bundle
========================

Preview, extract and embed videos in Sulu CMS

v1.0.4(3mo ago)61922MITPHPPHP ^8.2CI passing

Since Jan 16Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/robole-dev/sulu-video-bundle)[ Packagist](https://packagist.org/packages/robole/sulu-video-bundle)[ Docs](https://github.com/robole-dev/sulu-video-bundle)[ RSS](/packages/robole-sulu-video-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (7)Versions (6)Used By (0)

 [![](icon.svg)](icon.svg)SuluVideoBundle
===============

[](#suluvideobundle)

> Preview and extract embed URLs from Youtube, Vimeo, Dailymotion and HTML5 videos.

[![GitHub release](https://camo.githubusercontent.com/97720e560291f7182f1f9543006ca214609d5bc2e9d5f09b37debcc0234074b8/68747470733a2f2f666c61742e62616467656e2e6e65742f6769746875622f72656c656173652f726f626f6c652d6465762f73756c752d766964656f2d62756e646c65)](https://camo.githubusercontent.com/97720e560291f7182f1f9543006ca214609d5bc2e9d5f09b37debcc0234074b8/68747470733a2f2f666c61742e62616467656e2e6e65742f6769746875622f72656c656173652f726f626f6c652d6465762f73756c752d766964656f2d62756e646c65)[![Supports Sulu 2.6 or later](https://camo.githubusercontent.com/95baf11659ec93686f2f5c0fe1ca453aada2d0a0180257c40f10764be957bac0/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f53756c752f322e362f3532423543393f69636f6e3d706870)](https://camo.githubusercontent.com/95baf11659ec93686f2f5c0fe1ca453aada2d0a0180257c40f10764be957bac0/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f53756c752f322e362f3532423543393f69636f6e3d706870)

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.

[![Demonstration of video content type](cover.png)](cover.png)

Installation
------------

[](#installation)

This bundle requires PHP 8.2 or later and [Node 18](https://nodejs.org/en/) (or Node 14 for Sulu versions &lt;2.6.0) for building the Sulu administration UI.

1. Open a command console, enter your project directory and run:

```
composer require robole/sulu-video-bundle
```

If you're **not** using Symfony Flex, you'll also need to add the bundle in your `config/bundles.php` file:

```
return [
    //...
    Robole\SuluVideoBundle\SuluVideoBundle::class => ['all' => true],
];
```

2. Link the frontend code by adding the following to your `assets/admin/package.json`:

```
"dependencies": {
    "sulu-video-bundle": "file:../../vendor/robole/sulu-video-bundle/src/Resources/js"
}
```

3. Import the frontend code by adding the following to your `assets/admin/app.js`:

```
import "sulu-video-bundle";
```

4. Install all npm dependencies and build the admin UI ([see all options](https://docs.sulu.io/en/2.5/cookbook/build-admin-frontend.html)):

```
cd assets/admin
npm install
npm run build
```

Usage
-----

[](#usage)

1. Add the `video` content type to any of your page templates:

```

        Video
        Video

```

2. Render the embeddable link in your twig templates:

```
{% if content['my_video'] %}
    {% if video_provider(content['my_video']) %}

    {% else %}

    {% endif %}
{% endif %}
```

### Background

[](#background)

This small bundle serves as a reference for our blog series ["Sulu Bundle Development"](https://robole.de/blog/sulu-bundle-development-part-1) showcasing major steps to build a Sulu bundle from scratch. The underlying idea was inspired by the [Statamic Video Fieldtype](https://statamic.dev/fieldtypes/video).

### Scripts

[](#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

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance82

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~97 days

Total

5

Last Release

97d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cbcbb2f84ada4496a48f0531d9dec069f7dcb239e88d06629824cf50a941632f?d=identicon)[kappaj](/maintainers/kappaj)

---

Top Contributors

[![FlxRobole](https://avatars.githubusercontent.com/u/142887197?v=4)](https://github.com/FlxRobole "FlxRobole (12 commits)")[![martinwilmer](https://avatars.githubusercontent.com/u/3020641?v=4)](https://github.com/martinwilmer "martinwilmer (1 commits)")[![myolli4](https://avatars.githubusercontent.com/u/12009090?v=4)](https://github.com/myolli4 "myolli4 (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/robole-sulu-video-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/robole-sulu-video-bundle/health.svg)](https://phpackages.com/packages/robole-sulu-video-bundle)
```

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[pentatrion/vite-bundle

Vite integration for your Symfony app

2755.3M13](/packages/pentatrion-vite-bundle)[symfony/ai-bundle

Integration bundle for Symfony AI components

30282.3k6](/packages/symfony-ai-bundle)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[sulu/headless-bundle

Bundle that provides controllers and services for using Sulu as headless content management system

55133.7k2](/packages/sulu-headless-bundle)[robole/sulu-ai-translator-bundle

Translate any type of content using DeepL

181.3k](/packages/robole-sulu-ai-translator-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
