| Package Data | |
|---|---|
| Maintainer Username: | shadywallas |
| Maintainer Contact: | info@frenky.net (Frank de Jonge) |
| Package Create Date: | 2017-01-17 |
| Package Last Update: | 2017-03-02 |
| Home Page: | http://flysystem.thephpleague.com/adapter/azure/ |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-22 15:03:58 |
| Package Statistics | |
|---|---|
| Total Downloads: | 19,363 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 1 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
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": "http://pear.php.net"
}
],
Then install the latest version of the adapter using:
composer require league/flysystem-azure
<?php
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'));