- PHP 8.1 or above
composer require azure-oss/storage-blob-flysystem
use AzureOss\FlysystemAzureBlobStorage\AzureBlobStorageAdapter;
use AzureOss\Storage\Blob\BlobServiceClient;
use League\Flysystem\Filesystem;
$blobServiceClient = BlobServiceClient::fromConnectionString('<connection-string>');
$containerClient = $blobServiceClient->getContainerClient('quickstart');
$adapter = new AzureBlobStorageAdapter($containerClient, "optional/prefix");
$filesystem = new Filesystem($adapter);
$filesystem->write('hello', 'world!');
For more information visit the documentation at azure-oss.github.io.
Do you need help, do you want to talk to us, or is there anything else?
Join us at:
Azure-Storage-PHP-Adapter-Flysystem is released under the MIT License. See LICENSE for details.
The maintainers of this package add support for a PHP version following its initial release and drop support for a PHP version once it has reached its end of security support.
Azure-Storage-PHP is using Semver. This means that versions are tagged with MAJOR.MINOR.PATCH. Only a new major version will be allowed to break backward compatibility (BC).
Classes marked as @experimental or @internal are not included in our backward compatibility promise. You are also not guaranteed that the value returned from a method is always the same. You are guaranteed that the data type will not change.
PHP 8 introduced named arguments, which increased the cost and reduces flexibility for package maintainers. The names of the arguments for methods in the library are not included in our BC promise.