Important
Issues must be reported in the monorepo issue tracker. Please do not create issues in individual package repositories.
- PHP 8.1 or above
- Flysystem ^3.28
Install the package using composer:
composer require azure-oss/storage-blob-flysystemThis package provides a Flysystem adapter for Azure Blob Storage. It implements the Flysystem v3 adapter interface, allowing you to use Azure Blob Storage with any library that supports Flysystem.
use AzureOss\Storage\Blob\BlobContainerClient;
use AzureOss\Storage\BlobFlysystem\AzureBlobStorageAdapter;
use League\Flysystem\Filesystem;
$containerClient = BlobContainerClient::fromConnectionString('<connection string>', 'container-name');
$adapter = new AzureBlobStorageAdapter($containerClient);
$filesystem = new Filesystem($adapter);
// Use the filesystem as you would with any Flysystem adapter
$filesystem->write('path/to/file.txt', 'contents');
$contents = $filesystem->read('path/to/file.txt');For more information about using Flysystem, visit the Flysystem documentation.
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.