PHP code example of dmstr / yii2-flysystem-azure-file-system
1. Go to this page and download the library: Download dmstr/yii2-flysystem-azure-file-system library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dmstr / yii2-flysystem-azure-file-system example snippets
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')
]
]
];