organizrnginxsonarrradarrplexdashboardcouchpotatonzbgetbookmarkapplication-dashboardmuximuxlandingpagestartpagelandinghtpcserverhomepagesabnzbdheimdallemby
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
605 B
605 B
layout | permalink | title |
---|---|---|
default | /adapter/azure/ | Azure Blob Storage |
Azure Blob Storage
Installation
composer require league/flysystem-azure
Usage
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'));