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

[READ ONLY] Subtree split of the AzureOss\Storage\BlobFlysystem component

30

stars

19

commits

PHP

primary language

Sep 4, 2026

updated

github.com/php-oss-for-azure/azure-php
azure
flysystem
flysystem-adapter
php

README

Azure Storage Blob Flysystem Adapter

Latest Version on Packagist Packagist Downloads

PHP OSS for Azure logo

A Flysystem adapter for Azure Blob Storage built on top of azure-oss/storage-blob.

[!IMPORTANT] This package is community-maintained and is not affiliated with, endorsed by, or supported by Microsoft.

Install

composer require azure-oss/storage-blob-flysystem

Quickstart

<?php

use AzureOss\Storage\Blob\BlobServiceClient;
use AzureOss\Storage\BlobFlysystem\AzureBlobStorageAdapter;
use League\Flysystem\Filesystem;

$service = BlobServiceClient::fromConnectionString(
    getenv('AZURE_STORAGE_CONNECTION_STRING')
);

$container = $service->getContainerClient(
    getenv('AZURE_STORAGE_CONTAINER')
);

$adapter = new AzureBlobStorageAdapter($container);
$filesystem = new Filesystem($adapter);

// Write
$filesystem->write('docs/hello.txt', 'Hello Azure Blob + Flysystem');

// Read
$contents = $filesystem->read('docs/hello.txt');

// Stream upload
$stream = fopen('/path/to/big-file.zip', 'r');
$filesystem->writeStream('archives/big-file.zip', $stream);
fclose($stream);

// List recursively
foreach ($filesystem->listContents('docs', true) as $item) {
    echo $item->path().PHP_EOL;
}

// Delete
$filesystem->delete('docs/hello.txt');

Documentation

You can read the documentation here.

Migration Guide

Migrating from league/flysystem-azure-blob-storage? Migrate from league/flysystem-azure-blob-storage.

Maintenance

This package is part of the community-maintained PHP OSS for Azure project. It is an independent project and is not affiliated with or endorsed by Microsoft.

License

This project is released under the MIT License. See LICENSE for details.

Contributors

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

[READ ONLY] Subtree split of the AzureOss\Storage\BlobFlysystem component

30

stars

19

commits

PHP

primary language

Sep 4, 2026

updated

github.com/php-oss-for-azure/azure-php
azure
flysystem
flysystem-adapter
php

README

Azure Storage Blob Flysystem Adapter

Latest Version on Packagist Packagist Downloads

PHP OSS for Azure logo

A Flysystem adapter for Azure Blob Storage built on top of azure-oss/storage-blob.

[!IMPORTANT] This package is community-maintained and is not affiliated with, endorsed by, or supported by Microsoft.

Install

composer require azure-oss/storage-blob-flysystem

Quickstart

<?php

use AzureOss\Storage\Blob\BlobServiceClient;
use AzureOss\Storage\BlobFlysystem\AzureBlobStorageAdapter;
use League\Flysystem\Filesystem;

$service = BlobServiceClient::fromConnectionString(
    getenv('AZURE_STORAGE_CONNECTION_STRING')
);

$container = $service->getContainerClient(
    getenv('AZURE_STORAGE_CONTAINER')
);

$adapter = new AzureBlobStorageAdapter($container);
$filesystem = new Filesystem($adapter);

// Write
$filesystem->write('docs/hello.txt', 'Hello Azure Blob + Flysystem');

// Read
$contents = $filesystem->read('docs/hello.txt');

// Stream upload
$stream = fopen('/path/to/big-file.zip', 'r');
$filesystem->writeStream('archives/big-file.zip', $stream);
fclose($stream);

// List recursively
foreach ($filesystem->listContents('docs', true) as $item) {
    echo $item->path().PHP_EOL;
}

// Delete
$filesystem->delete('docs/hello.txt');

Documentation

You can read the documentation here.

Migration Guide

Migrating from league/flysystem-azure-blob-storage? Migrate from league/flysystem-azure-blob-storage.

Maintenance

This package is part of the community-maintained PHP OSS for Azure project. It is an independent project and is not affiliated with or endorsed by Microsoft.

License

This project is released under the MIT License. See LICENSE for details.

Contributors

Languages

PHP

100.0%