mikk150 / yii2-asset-manager-flysystem
yii2 asset manager that uploads assets to flysystem
Installs: 16 608
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Forks: 1
Type:yii2-extension
pkg:composer/mikk150/yii2-asset-manager-flysystem
Requires
- creocoder/yii2-flysystem: ^0.9
- yiisoft/yii2: ~2.0.13
Requires (Dev)
This package is auto-updated.
Last update: 2025-10-05 09:24:31 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/'
]
],
]