shadywallas / laravel-azure-storage
Flysystem adapter for Windows Azure working with laravel Url
Installs: 19 363
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 40
pkg:composer/shadywallas/laravel-azure-storage
Requires
- php: >=5.5.0
- league/flysystem: ~1.0
- microsoft/azure-storage: ~0.10.1
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2025-10-06 19:38:47 UTC
README
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
Bootstrap
<?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'));