Categories: Development

BunnyCDN PHP API Class

A very comprehensive, feature-packed and easy to use PHP class for the BunnyCDN pull and storage zones API.

This class whilst having a major focus on file storage zone interaction still includes pull zone features. Combining API with FTP, managing and using BunnyCDN file storage zones just got easier.

View class here on GitHub.

Features include:

  • List storage zones
  • Add storage zone
  • Delete storage zone
  • Create folder in storage zone
  • Delete folder in storage zone
  • Delete file in storage zone
  • Delete all files in a folder in storage zone
  • Download a file from storage zone
  • Download all files in a folder from storage zone
  • Upload file to storage zone
  • Upload all files in a folder to storage zone
  • Rename file or folder in storage zone
  • Move file in storage zone
  • Get directory size in storage zone
  • Navigate/List directories in storage zone
  • List all from storage zone directory
  • List all files formatted from storage zone directory
  • List all folders formatted from storage zone directory
  • List all formatted from storage zone directory
  • Get usage statistics
  • Get billing data
  • View balance
  • View monthly charge
  • View monthly charge breakdown
  • Apply coupon code
  • List pull zones
  • Add pull zone
  • Delete pull zone
  • Purge pull zone
  • Add hostname to pull zone
  • Remove hostname from pull zone
  • Set force SSL for pull zone
  • List pull zone HTTP access logs
Share

Recent Posts

Kennington reservoir drained drone images

A drained and empty Kennington reservoir images from a drone in early July 2024. The…

2 years ago

Merrimu Reservoir drone images

Merrimu Reservoir from drone. Click images to view larger.

2 years ago

Early September spring shots

Some early September spring shots from a bushwalk, It is still too early for wildflowers.

3 years ago

Cloning an NVMe to SK Hynix Platinum P41 NVMe

I recently needed to clone over a smaller NVMe to a 2TB SK Hynix Platinum…

3 years ago

Using Laravel’s deleteDirectory to delete folders and their contents

If you ever needed a simple solution in Laravel to delete an entire directory and…

3 years ago

How to allow only 1 user to register in a Laravel application

How to enforce only one user to register or be registered in a Laravel web…

3 years ago