PHP code example of xray / azure-storage-php-sdk

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


use Xray\AzureStoragePhpSdk\BlobStorage\BlobStorageClient;
use Xray\AzureStoragePhpSdk\Authentication\MicrosoftEntraId;

$client = BlobStorageClient::create(new MicrosoftEntraId(
    account: 'my_account',
    directoryId: 'directory_id',
    applicationId: 'application_id',
    applicationSecret: 'application_secret',
));