jc-it / yii2-flysystem-asset-manager
Asset manager that uses flysystem for Yii2
Installs: 2 500
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=8.1
- league/flysystem: ^3.0.21
- yiisoft/yii2: ~2.0.42
This package is auto-updated.
Last update: 2024-10-15 17:19:34 UTC
README
This extension provides an asset manager that uses flysystem for Yii2.
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require jc-it/yii2-flysystem-asset-manager
or add
"jc-it/yii2-flysystem-asset-manager": "^<latest version>"
to the require
section of your composer.json
file.
Configuration
... 'components' => [ 'assetFilesystem' => function() { return new \League\Flysystem\Filesystem(new \League\Flysystem\Local\LocalFilesystemAdapter(\Yii::getAlias('@webroot/assets'))); }, 'assetManager' => [ 'class' => \JCIT\components\AssetManager::class, 'filesystem' => 'assetFilesystem', ], ],
TODO
- Add tests