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)012.4k↓64.9%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 2w 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

32

—

LowBetter than 69% of packages

Maintenance42

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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

477d 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

[craftcms/cms

Craft CMS

3.6k3.7M3.4k](/packages/craftcms-cms)[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M319](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k268.2k89](/packages/moonshine-moonshine)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

265.2k](/packages/aedart-athenaeum)[illuminate/session

The Illuminate Session package.

9939.9M888](/packages/illuminate-session)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React/Svelte) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

5031.3k](/packages/erag-laravel-lang-sync-inertia)

PHPackages © 2026

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