xray / azure-storage-laravel
Azure Storage 适配器 for Laravel
v1.0.0
2024-09-28 16:09 UTC
Requires
- php: ^8.3
- laravel/framework: ^11.20
- xray/azure-storage-php-sdk: ^1.0
Requires (Dev)
- captainhook/captainhook: ^5.23
- captainhook/hook-installer: ^1.0
- fakerphp/faker: ^1.23
- laravel/pint: ^1.16
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.0
- orchestra/testbench: ^9.4
- pestphp/pest: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
- phpmd/phpmd: ^2.15
- phpstan/phpstan: ^1.11
- squizlabs/php_codesniffer: ^3.10
This package is auto-updated.
Last update: 2024-09-28 16:13:17 UTC
README
描述
Laravel 适配 Microsoft Azure Blob Storage
安装
composer require xray/azure-storage-laravel
配置
将这些新设置添加到您的 filesystem.php
文件中
'disks' => [ ... 'azure' => [ 'driver' => 'azure', 'account' => env('AZURE_STORAGE_ACCOUNT'), 'directory' => env('AZURE_STORAGE_DIRECTORY'), 'application' => env('AZURE_STORAGE_APPLICATION'), 'secret' => env('AZURE_STORAGE_SECRET'), 'container' => env('AZURE_STORAGE_CONTAINER'), // Optional parameters 'options' => [ 'authentication' => Xray\AzureStoragePhpSdk\Authentication\MicrosoftEntraId::class, 'url' => env('AZURE_STORAGE_URL'), 'secure' => env('AZURE_STORAGE_SECURE', true), ], ], ],
许可证
本项目采用 MIT 许可证。