Azure Blob Storage Adapter


composer require league/flysystem-azure-blob-storage:^3.0


It’s important to know this adapter does not fully comply with the adapter contract. The difference(s) is/are:

  • Visibility setting or retrieving is not supported.
  • Mimetypes are always resolved, where others do not.
  • Directory creation is not supported in any way.



use League\Flysystem\AzureBlobStorage\AzureBlobStorageAdapter;
use League\Flysystem\Filesystem;
use MicrosoftAzure\Storage\Blob\BlobRestProxy;

include __DIR__.'/vendor/autoload.php';

$client = BlobRestProxy::createBlobService('[INSERT-DSN-STRING-HERE]');
$adapter = new AzureBlobStorageAdapter(
$filesystem = new Filesystem($adapter);