league/flysystem-azure

This package is abandoned and no longer maintained. The author suggests using the league/flysystem-azure-blob-storage package instead.

Flysystem adapter for Windows Azure

Maintainers

👁 frankdejonge

Package info

github.com/thephpleague/flysystem-azure

pkg:composer/league/flysystem-azure

Statistics

Installs: 262 187

Dependents: 16

Suggesters: 12

Stars: 33

Open Issues: 14

1.0.4 2016-07-10 19:08 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 0b9838c4f75ee41bc390357b0350e9a62e3b3a1f

  • Frank de Jonge <info.woop@frenky.net>

This package is auto-updated.

Last update: 2022-02-01 12:43:04 UTC


README

👁 Author
👁 Build Status
👁 Coverage Status
👁 Quality Score
👁 Software License

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'));