LaravelPackages.net
Acme Inc.
Toggle sidebar
shadywallas/laravel-azure-storage

Flysystem adapter for Windows Azure working with laravel Url

19.444
1
1.0.5
About shadywallas/laravel-azure-storage

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

League\Flysystem\Azure [BETA]

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