Download the PHP package weboptic/flysystem-bunnycdn without Composer
On this page you can find all versions of the php package weboptic/flysystem-bunnycdn. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download weboptic/flysystem-bunnycdn
More information about weboptic/flysystem-bunnycdn
Files in weboptic/flysystem-bunnycdn
Package flysystem-bunnycdn
Short Description Flysystem adapter for BunnyCDN
License MIT
Informations about the package flysystem-bunnycdn
Flysystem Adapter for BunnyCDN Storage
⚠️ Note – Breaking Change
⚠️ (21/Feb/22) As the upstream BunnyCDNStorage client has gone sometime without an update, it's become unsustainable to continue to use. For all updates, simply change the
BunnyCDNStorage
toBunnyCDNClient
and re-import. ⚠️
Installation
To install flysystem-bunnycdn
, require the package with no version constraint. This should match the flysystem-bunnycdn
version with your version of FlySystem (v1, v2, v3 etc).
Usage
Usage with Pull Zones
To have BunnyCDN adapter publish to a public CDN location, you have to a "Pull Zone" connected to your BunnyCDN Storage Zone. Add the full URL prefix of your Pull Zone (including http://
/https://
) to the BunnyCDNAdapter parameter like shown below.
Note: You can also use your own domain name if it's configured in the pull zone.
Once you add your pull zone, you can use the ->getUrl($path)
, or in Laravel, the ->url($path)
command to get the fully qualified public URL of your BunnyCDN assets.
Usage in Laravel 9
For a guide on how to use flysystem-bunnycdn
in Laravel 9, follow the guide here:
https://blog.sinn.io/bunny-net-php-flysystem-v3/#usage-in-laravel-9
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
.
List of Regions
Contributing
Pull requests welcome. Please feel free to lodge any issues as discussion points.
Licence
The Flysystem adapter for Bunny.net is licensed under MIT.