PHPackages                             modularavel/larabunny-filesystem - 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. modularavel/larabunny-filesystem

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

modularavel/larabunny-filesystem
================================

Use Bunny Stream Filesystem Adapter for Laravel application

1.0.1(3mo ago)045↓85%MITPHPPHP &gt;=7.1

Since May 3Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/modularavel/larabunny-filesystem)[ Packagist](https://packagist.org/packages/modularavel/larabunny-filesystem)[ RSS](/packages/modularavel-larabunny-filesystem/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (4)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 modularavel/larabunny-filesystem
```

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

[](#configuration)

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

```
'larabunny' => [
    'driver' => 'larabunny',
    'hostname' => env('MODULARAVEL_LARABUNNY_HOSTNAME'),
    'library_id' => env('MODULARAVEL_LARABUNNY_LIBRARY_ID'),
    'api_key' => env('MODULARAVEL_LARABUNNY_API_KEY'),
],
```

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

```
MODULARAVEL_LARABUNNY_HOSTNAME=your-stream-cdn.b-cdn.net
MODULARAVEL_LARABUNNY_API_KEY=your-api-key
MODULARAVEL_LARABUNNY_LIBRARY_ID=123456
```

Usage
-----

[](#usage)

```
$videoId = Storage::disk('larabunny')->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('larabunny')->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

34

—

LowBetter than 75% of packages

Maintenance82

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity33

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

Total

2

Last Release

91d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/149928614?v=4)[modularavel](/maintainers/modularavel)[@modularavel](https://github.com/modularavel)

---

Top Contributors

[![modularavel](https://avatars.githubusercontent.com/u/149928614?v=4)](https://github.com/modularavel "modularavel (11 commits)")

### Embed Badge

![Health badge](/badges/modularavel-larabunny-filesystem/health.svg)

```
[![Health](https://phpackages.com/badges/modularavel-larabunny-filesystem/health.svg)](https://phpackages.com/packages/modularavel-larabunny-filesystem)
```

###  Alternatives

[aws/aws-sdk-php

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

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[laravel/ai

The official AI SDK for Laravel.

1.0k2.1M162](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9772.3M122](/packages/roots-acorn)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

252143.0k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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