PHPackages                             7graus/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. 7graus/bunnycdn-storage

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

7graus/bunnycdn-storage
=======================

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

2328PHP

Since Jul 13Pushed 5y agoCompare

[ Source](https://github.com/7graus/BunnyCDN.PHP.Storage)[ Packagist](https://packagist.org/packages/7graus/bunnycdn-storage)[ RSS](/packages/7graus-bunnycdn-storage/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#bunnycdnphpstorage)

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

### How to install:

[](#how-to-install)

```
composer require 7graus/bunnycdn-storage:dev-master

```

### 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

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e5fcc317bcff37fadf755e5c82e4c99b284dc7bea38cfc51028fefb64289fff4?d=identicon)[fabioviana](/maintainers/fabioviana)

---

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)")

### Embed Badge

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

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

###  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.8M125](/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)
