azure-oss / storage-blob-flysystem
Flysystem adapter for Azure Storage PHP
Installs: 647 107
Dependents: 7
Suggesters: 1
Security: 0
Stars: 27
Watchers: 4
Forks: 9
pkg:composer/azure-oss/storage-blob-flysystem
Requires
- php: ^8.1
- azure-oss/storage: ^1.4
- league/flysystem: ^3.28
Requires (Dev)
- laravel/pint: ^1.16
- league/flysystem-adapter-test-utilities: ^3.28
- phpstan/phpstan: ^1.11
- phpunit/phpunit: ^10.5
- rector/rector: ^1.2
README
Important
Issues must be reported in the monorepo issue tracker. Please do not create issues in individual package repositories.
Minimum Requirements
- PHP 8.1 or above
- Flysystem ^3.28
Install
Install the package using composer:
composer require azure-oss/storage-blob-flysystem
Usage
This 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');
Documentation
For more information about using Flysystem, visit the Flysystem documentation.
Support
Do you need help, do you want to talk to us, or is there anything else?
Join us at:
License
Azure-Storage-PHP-Adapter-Flysystem is released under the MIT License. See LICENSE for details.
PHP Version Support Policy
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.