Flysystem adapter for Windows Azure working with laravel Url
shadywallas/laravel-azure-storage is a Laravel package for flysystem adapter for windows azure working with laravel url.
It currently has 1 GitHub stars and 19.444 downloads on Packagist (latest version 1.0.5).
Install it with composer require shadywallas/laravel-azure-storage.
Discover more Laravel packages by shadywallas
or browse all Laravel packages to compare alternatives.
Last updated
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'));