PHPackages                             mehrdad-dadkhah/hls-video-generater - 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. [Image &amp; Media](/categories/media)
4. /
5. mehrdad-dadkhah/hls-video-generater

ActiveLibrary[Image &amp; Media](/categories/media)

mehrdad-dadkhah/hls-video-generater
===================================

PHP library for generating video m3u8 playlist

v1.1.0(8y ago)241.4k10GPLv3PHPPHP &gt;=5.5

Since Jul 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Mehrdad-Dadkhah/hls-video-generater)[ Packagist](https://packagist.org/packages/mehrdad-dadkhah/hls-video-generater)[ Docs](https://github.com/Mehrdad-Dadkhah/hls-video-generater)[ RSS](/packages/mehrdad-dadkhah-hls-video-generater/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (6)Versions (5)Used By (0)

HlsVideoGenerater
=================

[](#hlsvideogenerater)

[![Software License](https://camo.githubusercontent.com/e1514dd3f2095dbf68a0008ae62a631142953ad2e86aa94c504343f2c2c191da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d47504c2d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Packagist Version](https://camo.githubusercontent.com/7693d72ef9f16ef3e79863e8d4d3c180330e835e448ca8c6f32d16a9a4036d25/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4d6568726461642d4461646b6861682f686c732d766964656f2d67656e6572617465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Mehrdad-Dadkhah/HlsVideoGenerater)

PHP package for generating video m3u8 playlist. it generate hls video for diffrent bitrates.

System requirements
-------------------

[](#system-requirements)

Tested with &gt;=5.5, following binaries need to be installed

- [ffmpeg](http://www.ffmpeg.org/download.html) (tested with v2.2)

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

[](#installation)

```
composer require mehrdad-dadkhah/hls-video-generater

```

Usage
-----

[](#usage)

```
use MehrdadDadkhah\Video\HlsGenerater;

$hlsGenerater = new HlsGenerater();
$result = $hlsGenerater->setSource('path-to-video')
            ->setOutputDirectory('path-to-output-directory')
            ->checkAndGenerateOutputDirectory()
            ->setUri('/example/uri')
            ->setPrefix('sprite')
            ->setFilesOwnerAndPermission('root:www-data', 775)
            ->generate();
```

Acknowledgments
---------------

[](#acknowledgments)

- Thanks to [emgag](https://github.com/emgag) I use his package and follow [video-thumbnail-sprite](https://github.com/emgag/video-thumbnail-sprite) structure.

Uses:

- [emgag/flysystem-tempdir](https://github.com/emgag/flysystem-tempdir)
- [symfony/process](https://github.com/symfony/Process)

License
-------

[](#license)

hls-video-generater is licensed under the [GPLv3 License](http://opensource.org/licenses/GPL).

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~16 days

Total

3

Last Release

3231d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3860685?v=4)[Mehrdad-Dadkhah](/maintainers/Mehrdad-Dadkhah)[@Mehrdad-Dadkhah](https://github.com/Mehrdad-Dadkhah)

---

Top Contributors

[![Mehrdad-Dadkhah](https://avatars.githubusercontent.com/u/3860685?v=4)](https://github.com/Mehrdad-Dadkhah "Mehrdad-Dadkhah (11 commits)")

---

Tags

streamvideoffmpegjwplayerhlsm3u8live\_stream\_video

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mehrdad-dadkhah-hls-video-generater/health.svg)

```
[![Health](https://phpackages.com/badges/mehrdad-dadkhah-hls-video-generater/health.svg)](https://phpackages.com/packages/mehrdad-dadkhah-hls-video-generater)
```

###  Alternatives

[php-ffmpeg/php-ffmpeg

FFMpeg PHP, an Object Oriented library to communicate with AVconv / ffmpeg

5.0k24.0M187](/packages/php-ffmpeg-php-ffmpeg)[mostafaznv/larupload

Larupload is a ORM based file uploader for laravel to upload image, video, audio and other known files.

75462.1k6](/packages/mostafaznv-larupload)[mostafaznv/nova-video

Video Field for Laravel Nova

22437.2k2](/packages/mostafaznv-nova-video)[aminyazdanpanah/php-ffmpeg-video-streaming

📼 PHP FFMpeg - Video Streaming - DASH, HLS http://video.aminyazdanpanah.com

544287.4k9](/packages/aminyazdanpanah-php-ffmpeg-video-streaming)[pulse00/ffmpeg-bundle

Symfony bundle to provide PHP-FFmpeg as a Symfony service (https://github.com/alchemy-fr/PHP-FFmpeg)

59457.1k1](/packages/pulse00-ffmpeg-bundle)[lakshmaji/thumbnail

Thumbnails for videos

108123.2k](/packages/lakshmaji-thumbnail)

PHPackages © 2026

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