Flysystem adapter for the Windows Azure.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

League\Flysystem\Azure [BETA]

Author Build Status Coverage Status Quality Score Software License

This is a Flysystem adapter for the Windows Azure.

First ensure the pear repository is added to you composer.json file.

"repositories": [
        "type": "pear",
        "url": ""

Then install the latest version of the adapter using:

composer require league/flysystem-azure


use MicrosoftAzure\Storage\Common\ServicesBuilder;
use League\Flysystem\Filesystem;
use League\Flysystem\Azure\AzureAdapter;

$endpoint = sprintf('DefaultEndpointsProtocol=https;AccountName=%s;AccountKey=%s', 'account-name', 'api-key');
$blobRestProxy = ServicesBuilder::getInstance()->createBlobService($endpoint);

$filesystem = new Filesystem(new AzureAdapter($blobRestProxy, 'my-container'));