PHP Classes

File: vendor/league/flysystem/docs/adapter/azure.md

Recommend this page to a friend!
  Packages of Abed Nego Ragil Putra   Laravel Blogging Platform   vendor/league/flysystem/docs/adapter/azure.md   Download  
File: vendor/league/flysystem/docs/adapter/azure.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Laravel Blogging Platform
Manage blog posts using Laravel and Bootstrap
Author: By
Last change:
Date: 8 months ago
Size: 595 bytes
 

Contents

Class file image Download

layout: default permalink: /adapter/azure/ title: Azure Blob Storage

Azure Blob Storage

Installation

composer require league/flysystem-azure

Usage

use WindowsAzure\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'));