PHPackages                             platformcommunity/bunnycdn-storage - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. platformcommunity/bunnycdn-storage

ActiveLibrary[File &amp; Storage](/categories/file-storage)

platformcommunity/bunnycdn-storage
==================================

Library for BunnyCDN Storage

v0.2(5y ago)333.7k↓34.9%1[1 issues](https://github.com/PlatformCommunity/BunnyCDN.PHP.Storage/issues)MITPHPPHP &gt;=5.6.0

Since Dec 8Pushed 5y agoCompare

[ Source](https://github.com/PlatformCommunity/BunnyCDN.PHP.Storage)[ Packagist](https://packagist.org/packages/platformcommunity/bunnycdn-storage)[ RSS](/packages/platformcommunity-bunnycdn-storage/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

BunnyCDN.PHP.Storage
====================

[](#bunnycdnphpstorage)

The official PHP library used for interacting with the BunnyCDN Storage API.

### How to use:

[](#how-to-use)

The storage library is very simple to use. First, create the basic BunnyCDNStorage object with the authentication details. It's the basic object for interaction with the API.

```
$bunnyCDNStorage = new BunnyCDNStorage("storagezonename", "MyAccessKey", "sg");

```

The BunnyCDNStorage constructor takes the following parameters:

- **storageZoneName** - The name of your storage zone
- **apiAccessKey** - The API access key (password)
- **storageZoneRegion** - The storage zone region code (de, ny, or sg)

### Navigation:

[](#navigation)

- [Upload](#uploading-objects)
- [List](#listing-objects)
- [Download](#downloading-objects)
- [Delete](#deleting-objects)

Uploading objects:
------------------

[](#uploading-objects)

To upload a file to the storage, you can use the uploadFile method. If the path to the object does not exist yet, it will be automatically created.

```
$bunnyCDNStorage->uploadFile("local/file/path/helloworld.txt", "/storagezonename/helloworld.txt");

```

Listing objects:
----------------

[](#listing-objects)

Get a list of of all objects on the given path.

```
$bunnyCDNStorage->getStorageObjects("/storagezonename/");

```

The StorageObject contains the following properties:

- **Guid** - The unique GUID of the file
- **UserId** - The ID of the BunnyCDN user that holds the file
- **DateCreated** - The date when the file was created
- **LastChanged** - The date when the file was last modified
- **StorageZoneName** - The name of the storage zone to which the file is linked
- **Path** - The path to the object
- **ObjectName** - The name of the object
- **Length** - The total of the object in bytes
- **IsDirectory** - True if the object is a directory, otherwise false.
- **ServerId** - The ID of the storage server that the file resides on
- **StorageZoneId** - The ID of the storage zone that the object is linked to
- **FullPath** - The full path to the file

Downloading objects:
--------------------

[](#downloading-objects)

To download an object from the storage to a local file, you can use the downloadFile method.

```
$bunnyCDNStorage->downloadFile("/storagezonename/helloworld.txt", "local/file/path/helloworld.txt");

```

Deleting objects:
-----------------

[](#deleting-objects)

Deleting supports both files and directories. If the target object is a directory, the directory content will also be deleted.

```
$bunnyCDNStorage->deleteObject("/storagezonename/helloworld.txt");

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~240 days

Total

2

Last Release

2113d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2058557?v=4)[Alex](/maintainers/sifex)[@sifex](https://github.com/sifex)

---

Top Contributors

[![sifex](https://avatars.githubusercontent.com/u/2058557?v=4)](https://github.com/sifex "sifex (7 commits)")

### Embed Badge

![Health badge](/badges/platformcommunity-bunnycdn-storage/health.svg)

```
[![Health](https://phpackages.com/badges/platformcommunity-bunnycdn-storage/health.svg)](https://phpackages.com/packages/platformcommunity-bunnycdn-storage)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15161.6M2.6k](/packages/illuminate-filesystem)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)[madnest/madzipper

Easier zip file handling for Laravel applications.

1382.3M6](/packages/madnest-madzipper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
