PHPackages                             iamriajul/laravel-bunny-stream-filesystem-adapter - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. iamriajul/laravel-bunny-stream-filesystem-adapter

ActiveLibrary[File &amp; Storage](/categories/file-storage)

iamriajul/laravel-bunny-stream-filesystem-adapter
=================================================

Use Bunny Stream Filesystem Adapter for Laravel application

v0.0.11(1y ago)010.8k↓48.4%4MITPHPPHP ^7.1|^8.0

Since Feb 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/iamriajul/laravel-bunny-stream-filesystem-adapter)[ Packagist](https://packagist.org/packages/iamriajul/laravel-bunny-stream-filesystem-adapter)[ RSS](/packages/iamriajul-laravel-bunny-stream-filesystem-adapter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (12)Used By (0)

[![](https://camo.githubusercontent.com/e8fcd09587109acd86262b24e3bf29d19c2e208284e712ad05dd60bf4a4b8cb6/68747470733a2f2f62756e6e792e6e65742f7374617469632f62756e6e796e65742d6461726b2d64366134313236306231653462363635636232646334313365336562383463612e737667)](https://camo.githubusercontent.com/e8fcd09587109acd86262b24e3bf29d19c2e208284e712ad05dd60bf4a4b8cb6/68747470733a2f2f62756e6e792e6e65742f7374617469632f62756e6e796e65742d6461726b2d64366134313236306231653462363635636232646334313365336562383463612e737667)

Bunny Stream for Laravel
========================

[](#bunny-stream-for-laravel)

This is Laravel Filesystem's Driver for simple integration with Laravel.

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

[](#installation)

```
composer require iamriajul/laravel-bunny-stream-filesystem-adapter
```

Configuration
-------------

[](#configuration)

This package automatically register the service provider and the storage disk for the driver `bunny_stream`. You can configure the disk in `config/filesystems.php`:

```
'bunny_stream' => [
    'driver' => 'bunny_stream',
    'hostname' => env('BUNNY_STREAM_HOSTNAME'),
    'library_id' => env('BUNNY_STREAM_LIBRARY_ID'),
    'api_key' => env('BUNNY_STREAM_API_KEY'),
],
```

and remember to add the environment variables in your `.env` file:

```
BUNNY_STREAM_HOSTNAME=your-stream-cdn.b-cdn.net
BUNNY_API_KEY=your-api-key
BUNNY_STREAM_LIBRARY_ID=123456
```

Usage
-----

[](#usage)

```
$videoId = Storage::disk('bunny_stream')->put('abc.mp4', file_get_contents('abc.mp4'));
// $videoId = guid from bunny.

 // Enable Direct File Access from Bunny to Access m3u8
return response(Storage::disk('bunny_stream')->get("$videoId/playlist.m3u8"));
```

### Extra Methods

[](#extra-methods)

MethodDescriptionget($path)By default returns playlist.m3u8's content, but you can customize it by adding suffix like "$path/playlist.m3u8", "$path/play\_240p.mp4" and more.getHls($path)Returns playlist.m3u8's content, which would be the main entrypoint for any HLS player.getOriginal($path)As the name suggests, it just returns the original file's content user had uploaded initiallygetMp4($path, $quality = '240p,360p,etc')Returns Mp4 file's content, $quality param allows you to customize which file you want, such `240p`, `360p`, `720p`, NOTE: all the quality might not be available depending on the Original file's qualitygetMp4($path, $quality = 'low,mid,high')Not recommended to be called in N+1 situation, as this requires API to resolve what resolution is the low, and what is high, mid, etc.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance48

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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 ~7 days

Recently: every ~16 days

Total

11

Last Release

386d ago

### Community

Maintainers

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

---

Top Contributors

[![iamriajul](https://avatars.githubusercontent.com/u/24244379?v=4)](https://github.com/iamriajul "iamriajul (15 commits)")

### Embed Badge

![Health badge](/badges/iamriajul-laravel-bunny-stream-filesystem-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/iamriajul-laravel-bunny-stream-filesystem-adapter/health.svg)](https://phpackages.com/packages/iamriajul-laravel-bunny-stream-filesystem-adapter)
```

###  Alternatives

[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.3M74](/packages/unisharp-laravel-filemanager)[stechstudio/laravel-zipstream

A fast and simple streaming zip file downloader for Laravel.

4633.7M3](/packages/stechstudio-laravel-zipstream)[spatie/laravel-google-cloud-storage

Google Cloud Storage filesystem driver for Laravel

2408.9M13](/packages/spatie-laravel-google-cloud-storage)[laravel/vapor-cli

The Laravel Vapor CLI

31310.7M8](/packages/laravel-vapor-cli)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[azure-oss/storage-blob-laravel

Azure Storage Blob filesystem driver for Laravel

63582.2k1](/packages/azure-oss-storage-blob-laravel)

PHPackages © 2026

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