dmstr/yii2-flysystem-azure-file-system

There is no license information available for the latest version (0.0.1) of this package.

Yii2 Azure Filesystem Adapter for creocoder\flysystem

0.0.1 2022-01-28 11:40 UTC

This package is auto-updated.

Last update: 2024-03-28 16:43:57 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')
        ]
    ]
];