PHPackages                             achyutn/laravel-hls - 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. achyutn/laravel-hls

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

achyutn/laravel-hls
===================

A package to convert video files to HLS with rotating key encryption.

v0.15.1(9mo ago)1321.5k↑35.7%8MITPHPPHP ^8.2|^8.3|^8.4CI failing

Since Jul 5Pushed 9mo agoCompare

[ Source](https://github.com/achyutkneupane/laravel-hls)[ Packagist](https://packagist.org/packages/achyutn/laravel-hls)[ Fund](https://www.buymeacoffee.com/achyutn)[ GitHub Sponsors](https://github.com/achyutkneupane)[ RSS](/packages/achyutn-laravel-hls/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (8)Versions (33)Used By (0)

Laravel HLS
===========

[](#laravel-hls)

[![Laravel HLS](https://camo.githubusercontent.com/ff3d128ffeb605dbe44889cf7c0b5bd9e6f68a3927237851e30cbca9745b948a/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c253230484c532e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6163687975746e2532466c61726176656c2d686c73267061747465726e3d616e63686f727341776179267374796c653d7374796c655f31266465736372697074696f6e3d412b7061636b6167652b746f2b636f6e766572742b766964656f2b66696c65732b746f2b484c532b776974682b726f746174696e672b6b65792b656e6372797074696f6e2e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313530707826696d616765733d766964656f2d63616d657261 "Laravel HLS")](https://packagist.org/packages/achyutn/laravel-hls)

[![Packagist Version](https://camo.githubusercontent.com/b149d85b47e90905e90c2073b2f0a106795167fc6dfa523996915ff8c52be18b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6163687975746e2f6c61726176656c2d686c733f6c6162656c3d4c617465737425323056657273696f6e)](https://camo.githubusercontent.com/b149d85b47e90905e90c2073b2f0a106795167fc6dfa523996915ff8c52be18b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6163687975746e2f6c61726176656c2d686c733f6c6162656c3d4c617465737425323056657273696f6e)[![Packagist Downloads](https://camo.githubusercontent.com/3bd246a14345c21a321726bf77b90b5a2905f535c37b2ba14d6e051e92779388/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6163687975746e2f6c61726176656c2d686c733f6c6162656c3d5061636b6167697374253230446f776e6c6f616473)](https://camo.githubusercontent.com/3bd246a14345c21a321726bf77b90b5a2905f535c37b2ba14d6e051e92779388/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6163687975746e2f6c61726176656c2d686c733f6c6162656c3d5061636b6167697374253230446f776e6c6f616473)[![Packagist Stars](https://camo.githubusercontent.com/e221375baa609fe87d11a444ae826874ded35ab60374ce2756f52af8091d9353/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6163687975746e2f6c61726176656c2d686c733f6c6162656c3d5374617273)](https://camo.githubusercontent.com/e221375baa609fe87d11a444ae826874ded35ab60374ce2756f52af8091d9353/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6163687975746e2f6c61726176656c2d686c733f6c6162656c3d5374617273)[![Quality Gate Status](https://camo.githubusercontent.com/71fd5f1235cdc92cebb90360f9ae0a88c18ec26a312ba7807a3661eb6e0cf97d/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6163687975746b6e657570616e655f6c61726176656c2d686c73266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/summary/new_code?id=achyutkneupane_laravel-hls)[![Lint & Test PR](https://github.com/achyutkneupane/laravel-hls/actions/workflows/pr-lint-test.yml/badge.svg)](https://github.com/achyutkneupane/laravel-hls/actions/workflows/pr-lint-test.yml)[![Bump version](https://github.com/achyutkneupane/laravel-hls/actions/workflows/tagrelease.yml/badge.svg)](https://github.com/achyutkneupane/laravel-hls/actions/workflows/tagrelease.yml)

`laravel-hls` is a Laravel package for converting video files into adaptive HLS (HTTP Live Streaming) streams using `ffmpeg`, with built-in AES-128 encryption, queue support, and model-based configuration.

This package makes use of the [laravel-ffmpeg](https://github.com/protonemedia/laravel-ffmpeg) package to handle video processing and conversion to HLS format. It provides a simple way to convert video files stored in your Laravel application into HLS streams, which can be used for adaptive bitrate streaming.

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

[](#installation)

You can install the package via Composer:

```
composer require achyutn/laravel-hls
```

You must publish the [configuration file](src/config/hls.php) using the following command:

```
php artisan vendor:publish --provider="AchyutN\LaravelHLS\HLSProvider" --tag="hls-config"
```

The configuration file is required to set-up the aliases for the models that will use the HLS conversion trait.

```
