Skip to content

xray-labs/azure-storage-laravel

Repository files navigation

Azure Storage PHP SDK

License

PHP CI

Description

Laravel adapter for Microsoft Azure Blob Storage

Installation

composer require xray/azure-storage-laravel

Configuration

Add these new settings to your filesystem.php file

'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),
        ],
    ],
],

License

This project is licensed under the MIT License.

Contacts