Download the PHP package jorisnoo/statamic-bunny-purge without Composer
On this page you can find all versions of the php package jorisnoo/statamic-bunny-purge. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jorisnoo/statamic-bunny-purge
More information about jorisnoo/statamic-bunny-purge
Files in jorisnoo/statamic-bunny-purge
Package statamic-bunny-purge
Short Description Automatically purge Bunny CDN cache when Statamic content changes.
License MIT
Homepage https://github.com/jorisnoo/statamic-bunny-purge
Informations about the package statamic-bunny-purge
Statamic Bunny Purge
Automatically purge your CDN cache when Statamic content changes. Works with Bunny CDN out of the box, but supports any CDN with a purge API.
Installation
You can install the package via composer:
Add your API key to .env:
That's it — Bunny CDN is the default and works without any further configuration.
Configuration
You can publish the config file with:
This is the contents of the published config file:
| Key | Description | Default |
|---|---|---|
api_url |
The CDN purge API endpoint | https://api.bunny.net/purge |
api_key |
Your CDN API key | — |
auth_type |
Auth header style: access_key or bearer |
access_key |
Using a custom CDN
Override the API URL and auth type to point at any CDN purge endpoint:
Usage
The package works automatically. It listens to Statamic's URL invalidation events and purges the corresponding URLs from your CDN cache whenever content changes.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Joris Noordermeer
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of statamic-bunny-purge with dependencies
illuminate/contracts Version ^12.0||^13.0
spatie/laravel-package-tools Version ^1.16
statamic/cms Version ^5.0 || ^6.0