toshy/bunnynet-php

BunnyNet API client for PHP

6.0.0 2025-06-01 16:35 UTC

README


Bunny CDN Logo

BunnyNet API client for PHP

Current bundle version Packagist Total Downloads PHP version requirement PHP-FIG PSR-18 Code style Mess detector Static analysis Unit tests Security

Bunny.net is content delivery platform that truly hops: providing CDN, edge storage, video streaming, image optimizers and much more!

Note: This is a non-official library for the bunny.net API.

🧰 Install

composer require toshy/bunnynet-php:^6.0

📜 Documentation

The documentation is available at https://toshy.github.io/BunnyNet-PHP.

🛠️ Contribute

Features and bugfixes should be based on the master branch.

Prerequisites

Install dependencies

task composer:install 

Enable pre-commit hook

task git:hooks

Note: Checks for phpcs, phpstan, phpmd and phpunit are executed when committing. You can also run these checks with task contribute.

🤖 Automated PRs

This repository has a workflow run (see generator) that creates or updates existing models based on the latest OpenAPI specifications and subsequently creates a (draft) PR for these changes. You can identify these automated PRs with the labels OpenAPI and automated.

The automated PRs contain 3 tasks:

  • Add/Update API models
  • Add/Update API public methods for corresponding models
  • Update documentation

The first task is already done by the generator, but if you want to fix the other two tasks, please use the following way of working.

  1. Fork the repository and make sure to copy all branches (not just master).
  2. Create a branch based on the automated PR branch.
    • The automated branches will be prefixed with patch/automated-models followed by a commit hash, e.g. patch/automated-models-12efdf9.
  3. Make the desired changes in your own branch.
  4. Create a PR with your branch, denote your changes and reference the existing automated (draft) PR.

❕ Licence

This repository comes with a MIT license.