mikk150/yii2-asset-manager-flysystem

yii2 asset manager that uploads assets to flysystem

Installs: 6 455

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Forks: 1

Type:yii2-extension

1.1.0 2018-10-04 17:51 UTC

This package is auto-updated.

Last update: 2024-04-05 06:14:56 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/'
        ]
    ],
]