PHP code example of quioteframework / cloud-azure
1. Go to this page and download the library: Download quioteframework/cloud-azure 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/ */
quioteframework / cloud-azure example snippets
use Quiote\Storage\Azure\AzureBlobClient;
use Quiote\Storage\Azure\AzureCredentialFactory;
$credential = AzureCredentialFactory::fromConfig(
['auth' => getenv('AZURE_STORAGE_AUTH') ?: 'shared_key', 'account_key' => getenv('AZURE_STORAGE_KEY') ?: ''],
$psr18Client,
);
$blob = new AzureBlobClient(
httpClient: $psr18Client,
accountName: getenv('AZURE_STORAGE_ACCOUNT'),
credential: $credential,
);