PHP code example of quioteframework / filesystem-azure
1. Go to this page and download the library: Download quioteframework/filesystem-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 / filesystem-azure example snippets
$client = new \Quiote\Storage\Azure\AzureBlobClient(
httpClient: $psr18Client,
accountName: getenv('AZURE_STORAGE_ACCOUNT'),
credential: new \Quiote\Storage\Azure\SharedKeyCredential(getenv('AZURE_STORAGE_KEY')),
);
$adapter = new \Quiote\Filesystem\Azure\AzureFilesystemAdapter($client, container: 'my-app-files');
$adapter->write('reports/q1.csv', $csv);
$adapter->read('reports/q1.csv');
$adapter->listContents('reports');