Skip to content

Azure-OSS/azure-storage-php-adapter-flysystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Azure Storage Blob Flysystem Adapter

Latest Version on Packagist Packagist Downloads

Important

Issues must be reported in the monorepo issue tracker. Please do not create issues in individual package repositories.

Minimum Requirements

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.

About

Blob storage adapter to integrate with Flysystem

Topics

Resources

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages