PHPackages                             eg-mohamed/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. eg-mohamed/laravel-bunny-stream-filesystem-adapter

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

eg-mohamed/laravel-bunny-stream-filesystem-adapter
==================================================

Use Bunny Stream Filesystem Adapter for Laravel application

1.1(1y ago)08MITPHPPHP ^7.1|^8.0

Since Apr 7Pushed 1y agoCompare

[ Source](https://github.com/EG-Mohamed/laravel-bunny-stream-filesystem-adapter)[ Packagist](https://packagist.org/packages/eg-mohamed/laravel-bunny-stream-filesystem-adapter)[ RSS](/packages/eg-mohamed-laravel-bunny-stream-filesystem-adapter/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (3)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 eg-mohamed/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_STREAM_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

27

—

LowBetter than 47% of packages

Maintenance43

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.6% 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 ~0 days

Total

2

Last Release

454d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23424932?v=4)[Mohamed Said](/maintainers/EG-Mohamed)[@EG-Mohamed](https://github.com/EG-Mohamed)

---

Top Contributors

[![iamriajul](https://avatars.githubusercontent.com/u/24244379?v=4)](https://github.com/iamriajul "iamriajul (14 commits)")[![EG-Mohamed](https://avatars.githubusercontent.com/u/23424932?v=4)](https://github.com/EG-Mohamed "EG-Mohamed (8 commits)")

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[google/cloud

Google Cloud Client Library

1.2k16.7M57](/packages/google-cloud)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k39](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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