mikk150 / yii2-asset-manager-flysystem
yii2 asset manager that uploads assets to flysystem
1.1.0
2018-10-04 17:51 UTC
Requires
- creocoder/yii2-flysystem: ^0.9
- yiisoft/yii2: ~2.0.13
Requires (Dev)
This package is auto-updated.
Last update: 2024-11-05 07:18:24 UTC
README
Installation
Either run
php composer.phar require --prefer-dist mikk150/yii2-asset-manager-flysystem "^1.1"
or add
"mikk150/yii2-asset-manager-flysystem": "^1.1"
to the require section of your composer.json
file
Usage
configure Yii2 config
'components' => [
'assetManager' => [
'class' => mikk150\assetmanager\AssetManager::class,
'basePath' => './',
'baseUrl' => '//cdn.host.com',
'flySystem' => [
'class' => creocoder\flysystem\FtpFilesystem::class, // or any other flysystem compatible filesystem that can be published on web easily
'host' => 'cdn.host.com',
'username' => 'cdn.username',
'password' => 'cdn.password',
'root' => 'www/'
]
],
]