framgia / flysystem-azure
Windows Azure 的 Flysystem 适配器
0.1.0
2017-09-14 10:05 UTC
Requires
- php: >=5.5.0
- league/flysystem: ~1.0
- microsoft/azure-storage: ^0.18.0
This package is not auto-updated.
Last update: 2021-11-13 11:34:53 UTC
README
为 Laravel 5 定制的 Azure 文件系统
这是一个 Windows Azure 的 Flysystem 适配器。
需要 Laravel 5
安装
安装包
composer require framgia/flysystem-azure
打开 config/app.php 并将以下内容添加到 providers 部分
Framgia\Flysystem\Azure\AzureServiceProvider::class,
打开 config/filesystems.php 并将以下内容添加到 disks 部分
'azure' => [
'driver' => 'azure',
'name' => env('AZURE_STORAGE_NAME'),
'key' => env('AZURE_STORAGE_KEY'),
'container' => env('AZURE_STORAGE_CONTAINER', ''),
'service_url' => env('AZURE_STORAGE_SERVICE_URL'),
]
编辑 .env 并添加变量
AZURE_STORAGE_NAME=
AZURE_STORAGE_KEY=
AZURE_STORAGE_CONTAINER=
AZURE_STORAGE_SERVICE_URL=https://{namespace}.blob.core.windows.net