PHP code example of xray / azure-storage-laravel

1. Go to this page and download the library: Download xray/azure-storage-laravel 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/ */

    

xray / azure-storage-laravel example snippets


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