PHPackages                             white43/yii2-cloud-asset-manager - 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. white43/yii2-cloud-asset-manager

ActiveYii2-extension

white43/yii2-cloud-asset-manager
================================

This extension uploads your local yii2 assets to CDN services

2.1.0(2y ago)69.6k↓33.3%1[1 issues](https://github.com/white43/yii2-cloud-asset-manager/issues)MITPHPPHP ^7.2 || ^8.0

Since Oct 3Pushed 2y ago2 watchersCompare

[ Source](https://github.com/white43/yii2-cloud-asset-manager)[ Packagist](https://packagist.org/packages/white43/yii2-cloud-asset-manager)[ RSS](/packages/white43-yii2-cloud-asset-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (7)Used By (0)

#### What it is

[](#what-it-is)

This small library is useful when you need to have repeatable hashes of your asset bundles (thus, repeatable URLs of `css`, `js`, etc.) across deploys. It helps to keep CDN cache warm and declines the number of the requests to the origin. Nevertheless, it may be used in production environment as is without uploading asset bundles to any remote storage. It relies on the contents of your assets not on their timestamps, so it generates constant hashes and caches them.

#### Installation

[](#installation)

The preferred way to install this extension is to use `composer`.

```
composer require white43/yii2-cloud-asset-manager
```

Next, you need to choose and install an appropriate adapter (which knows how to talk to different storages) from the list of the supported adapters. They can be found [here](https://github.com/thephpleague/flysystem#officially-supported-adapters).

For instance:

```
composer require league/flysystem-aws-s3-v3
```

#### Cloud configuration

[](#cloud-configuration)

```
