PHPackages                             syedgalibahmed/bunny-cdn.php.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. syedgalibahmed/bunny-cdn.php.storage

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

syedgalibahmed/bunny-cdn.php.storage
====================================

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

1.0(2y ago)03MITPHPPHP &gt;=7.0

Since Oct 22Pushed 2y agoCompare

[ Source](https://github.com/syedgalib/BunnyCDN.PHP.Storage)[ Packagist](https://packagist.org/packages/syedgalibahmed/bunny-cdn.php.storage)[ RSS](/packages/syedgalibahmed-bunny-cdnphpstorage/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)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

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

932d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/75383ca2bd1dcb742f958c841a40fb40d92a30fe3aebd64e4cd13eeca34ec8f9?d=identicon)[syedgalibahmed](/maintainers/syedgalibahmed)

---

Top Contributors

[![DejanPelzel](https://avatars.githubusercontent.com/u/1392401?v=4)](https://github.com/DejanPelzel "DejanPelzel (1 commits)")[![sifex](https://avatars.githubusercontent.com/u/2058557?v=4)](https://github.com/sifex "sifex (1 commits)")[![syedgalib](https://avatars.githubusercontent.com/u/55786211?v=4)](https://github.com/syedgalib "syedgalib (1 commits)")

### Embed Badge

![Health badge](/badges/syedgalibahmed-bunny-cdnphpstorage/health.svg)

```
[![Health](https://phpackages.com/badges/syedgalibahmed-bunny-cdnphpstorage/health.svg)](https://phpackages.com/packages/syedgalibahmed-bunny-cdnphpstorage)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

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

Cloud Storage Client for PHP

34390.8M124](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[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)

PHPackages © 2026

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