dmstr / yii2-flysystem-azure-file-system
Yii2 Azure Filesystem Adapter for creocoder\flysystem
Installs: 2 008
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Type:project
Requires
This package is auto-updated.
Last update: 2024-10-28 17:54:21 UTC
README
An Yii2 Azure Filesystem Adapter for creocoder\flysystem
Installation
composer require dmstr/yii2-flysystem-azure-file-system
Configuration
Add this to your existing Yii2 config
use dmstr\flysystem\azureFileSystem\AzureFileFilesystem; return [ 'components' => [ 'fsAzureStorage' => [ 'class' => AzureFileFilesystem::class, 'accountName' => getenv('AZURE_STORAGE_ACCOUNT_NAME'), 'accountKey' => getenv('AZURE_STORAGE_ACCOUNT_KEY'), 'container' => getenv('AZURE_STORAGE_CONTAINER') ] ] ];