Download the PHP package bangnokia/laravel-bunny-storage without Composer

On this page you can find all versions of the php package bangnokia/laravel-bunny-storage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-bunny-storage

Bunny Storage for Laravel

This package is just a wrapper for Laravel of the flysystem-bunnycdn package for simple integration with Laravel.

Installation

Laravel 10 and 11 remain available for legacy compatibility but are end of life. Use a currently security-supported Laravel release for production when possible.

Configuration

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

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

Usage

Streaming Support

This package includes streaming support for large file uploads, which significantly reduces memory usage.

Memory Efficient Uploads

When uploading large files (e.g., database backups, videos), the streaming adapter automatically:

  1. Detects when a file stream/resource is provided
  2. Streams the file directly to BunnyCDN without loading into memory
  3. Reduces memory usage from O(file_size) to O(buffer_size)

Example: Large File Upload

Upload Transport Configuration

The upload_options disk setting supports three Guzzle request options: connect_timeout, timeout, and expect. Timeouts must be positive numbers and expect must be a boolean. Other request options are rejected so disk configuration cannot override TLS verification, credentials, headers, or the request body.

Choose a timeout below your API or queue worker deadline, with enough headroom for the application to handle a failed upload. Setting expect to false disables the Expect: 100-Continue handshake. Existing disks keep the upstream defaults listed in the example comment until these options are configured.

Uploads are attempted once. Redirects are not followed, and every non-2xx response fails explicitly. The package does not automatically retry a failed PUT because Bunny may have stored the object before the connection was lost, and a stream may not be safe to replay. Reconcile the expected object before a bounded application-level retry.

An upload-only Guzzle client can optionally be resolved from Laravel's container using a class name or binding string:

Register the binding in an application service provider so config:cache contains only the string. Use a dedicated client: it receives the Bunny AccessKey header and uploaded file body, so request logging must be disabled. Do not log or serialize transport exception request objects for the same reason. Do not attach automatic retry or redirect middleware to the custom client.

Regions

For a full region list, please visit the BunnyCDN API documentation page.

flysystem-bunnycdn also comes with constants for each region located within PlatformCommunity\Flysystem\BunnyCDN\BunnyCDNRegion.


All versions of laravel-bunny-storage with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.15.2
platformcommunity/flysystem-bunnycdn Version ^3.3.9
illuminate/filesystem Version ^10|^11|^12|^13
league/flysystem-path-prefixing Version ^3.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bangnokia/laravel-bunny-storage contains the following files

Loading the files please wait ...