PHPackages                             bigdropinc/yii2-cloudstorage - 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. bigdropinc/yii2-cloudstorage

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

bigdropinc/yii2-cloudstorage
============================

Common interface for amazon s3 and rackspace cloud files

26PHP

Since May 13Pushed 10y ago1 watchersCompare

[ Source](https://github.com/bigdropinc/yii2-cloudstorage)[ Packagist](https://packagist.org/packages/bigdropinc/yii2-cloudstorage)[ RSS](/packages/bigdropinc-yii2-cloudstorage/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Cloud Storage
==================

[](#yii2-cloud-storage)

Common interface for amazon s3 and rackspace cloud files.

Configuration
-------------

[](#configuration)

### Amazon S3

[](#amazon-s3)

Once the extension is installed, simply modify your application configuration as follows:

```
return [
    //...
    'components' => [
        //...
        'cloudStorage' => [
            'class' => 'bigdropinc\cloudStorage\AmazonS3',
            'key' => '***',
            'secret' => '***',
            'bucket' => 'bucket name',
            //fill this attribute, if you know the base url of your bucket
            'cloudStorageBaseUrl' => 'http://site.s3.amazon.com/'
        ],
    ],
];
```

### Rackspace Cloud Files

[](#rackspace-cloud-files)

Once the extension is installed, simply modify your application configuration as follows:

```
return [
    //...
    'components' => [
        //...
        'cloudStorage' => [
            'class' => 'bigdropinc\cloudStorage\RackspaceCloudFiles',
            'username' => '***',
            'apiKey' => '***',
            'region' => 'LON',
            'containerName' => 'container name',
            //fill this attribute, if you know the base url of your container
            'cloudStorageBaseUrl' => 'http://site.rackspace.com/'
        ],
    ],
];
```

Usage
-----

[](#usage)

### Uploading Files

[](#uploading-files)

```
$file = '@frontend/web/media/image.png';
Yii::$app->cloudStorage->upload($file);
```

### Downloading Files

[](#downloading-files)

```
$name = 'media/image.png';
$dir = '@frontend/web/tmp';
Yii::$app->cloudStorage->download($name, $dir);
```

### Deleting Files

[](#deleting-files)

```
$name = 'media/image.png';
Yii::$app->cloudStorage->delete($name);
```

### Getting Public Url

[](#getting-public-url)

```
$name = 'media/image.png';
Yii::$app->cloudStorage->getPublicUrl($name);
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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://avatars.githubusercontent.com/u/8438019?v=4)[bigdropinc](/maintainers/bigdropinc)[@bigdropinc](https://github.com/bigdropinc)

### Embed Badge

![Health badge](/badges/bigdropinc-yii2-cloudstorage/health.svg)

```
[![Health](https://phpackages.com/badges/bigdropinc-yii2-cloudstorage/health.svg)](https://phpackages.com/packages/bigdropinc-yii2-cloudstorage)
```

###  Alternatives

[venveo/craft-compress

Create smart zip files from Craft assets on the fly

124.7k](/packages/venveo-craft-compress)

PHPackages © 2026

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