承接 jorisnoo/statamic-bunny-purge 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jorisnoo/statamic-bunny-purge

最新稳定版本:0.5.1

Composer 安装命令:

composer require jorisnoo/statamic-bunny-purge

包简介

Automatically purge Bunny CDN cache when Statamic content changes.

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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:

composer require jorisnoo/statamic-bunny-purge

Add your API key to .env:

CDN_PURGE_API_KEY=your-bunny-api-key

That's it — Bunny CDN is the default and works without any further configuration.

Configuration

You can publish the config file with:

php artisan vendor:publish --tag="bunny-purge"

This is the contents of the published config file:

return [
    'api_url' => env('CDN_PURGE_API_URL', 'https://api.bunny.net/purge'),
    'api_key' => env('CDN_PURGE_API_KEY'),
    'auth_type' => env('CDN_PURGE_AUTH_TYPE', 'access_key'),
];
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:

CDN_PURGE_API_URL=https://cdn.example.com/api/cache/purge
CDN_PURGE_API_KEY=your-api-key
CDN_PURGE_AUTH_TYPE=bearer

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

composer test

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

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 229
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固