承接 thomasvantuycom/craft-bunny 相关项目开发

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

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

thomasvantuycom/craft-bunny

Composer 安装命令:

composer require thomasvantuycom/craft-bunny

包简介

Bunny.net integration for Craft CMS.

README 文档

README

This Craft CMS plugin seamlessly integrates with Bunny.net, providing three powerful filesystem drivers:

  • Bunny Storage Filesystem – Upload assets directly from Craft’s control panel to your Bunny Storage Zone.
  • Bunny CDN Filesystem – Offload image transformations to Bunny's Dynamic Image API, reducing load on your Craft CMS server.
  • Bunny Stream Filesystem – Upload videos directly from Craft’s control panel to Bunny Stream.

Ideal for boosting performance and streamlining media delivery, this plugin makes it easy to manage and optimize your assets using Bunny.net’s infrastructure.

Requirements

This plugin requires Craft CMS 5.8.0 or later, and PHP 8.2 or later.

Installation

You can install this plugin from the Plugin Store or with Composer.

From the Plugin Store

Go to the Plugin Store in your project’s Control Panel and search for “Bunny.net”. Then press “Install”.

With Composer

Open your terminal and run the following commands:

# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require thomasvantuycom/craft-bunny

# tell Craft to install the plugin
./craft plugin/install bunny

Setup

Bunny Storage Filesystem

To configure the Bunny Storage filesystem, you’ll need the following:

  • Zone Name – The name of your Bunny.net storage zone.
  • Primary Region – The main region where your storage zone is hosted.
  • Access Key – This is not your general Bunny.net API key. Instead, it’s the password found under the "FTP & API Access" tab in your storage zone’s settings.

If you want assets in this filesystem to have publicly accessible URLs, you’ll also need to:

  1. Create a Pull Zone in your Bunny.net dashboard and link it to your Storage Zone.
  2. Provide the Pull Zone URL in the filesystem’s configuration under the appropriate setting.

Bunny CDN Filesystem

The Bunny CDN filesystem is intended only for use as the Transform Filesystem of a volume. Its sole purpose is to offload image transformations to Bunny.net using their Dynamic Image API.

To use this filesystem:

  1. Create a Bunny Pull Zone and link it to either:
    • A Bunny Storage Zone (as described above), or
    • Any other Craft CMS filesystem that provides publicly accessible asset URLs.
  2. In your Pull Zone settings on Bunny.net:
    • Enable the Optimizer feature.
    • Specifically enable the Dynamic Image API.

This setup allows Craft to generate transformed images via Bunny’s edge network, significantly improving performance and reducing processing load on your server.

Image Transformations

You can use Craft's standard image transformation syntax—no changes to your templates are needed. This plugin automatically maps Craft’s transformation parameters to Bunny.net’s Dynamic Image API behind the scenes.

Bunny currently supports the following Craft transformation modes:

  • crop
  • fit

Other modes are not supported and will be ignored.

Bunny Stream Filesystem

The Bunny Stream filesystem is intended specifically for managing streaming videos. To configure the filesystem, you'll need the following:

  • Library ID – The ID of your Bunny.net stream library.
  • CDN Hostname – The hostname found under the "API" tab in your stream settings.
  • Access Key – This is not your general Bunny.net API key. It is also found in the "API" tab.

Because Bunny Stream does not store original file extensions, you'll need to add the following to your general.php Craft config file for the filesystem to work:

->extraAllowedFileExtensions([''])

Once configured, the Direct Play URL for a video will be available via the getUrl() method on your asset.

thomasvantuycom/craft-bunny 适用场景与选型建议

thomasvantuycom/craft-bunny 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 127 次下载、GitHub Stars 达 4, 最近一次更新时间为 2025 年 07 月 30 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 thomasvantuycom/craft-bunny 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 thomasvantuycom/craft-bunny 我们能提供哪些服务?
定制开发 / 二次开发

基于 thomasvantuycom/craft-bunny 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-30