Package Data | |
---|---|
Maintainer Username: | ridesoft |
Maintainer Contact: | maurizio.brioschi@ridesoft.org (ridesoft) |
Package Create Date: | 2015-02-05 |
Package Last Update: | 2015-02-18 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-11 15:02:59 |
Package Statistics | |
---|---|
Total Downloads: | 54 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
PHP Utility library to interface with Microsoft Azure Cloud API filesystem that works as in Laravel 4.2 as in pure php.
Here API
Add to your laravel application composer:
"require": {
"ridesoft/azurecloudmap": "0.4.*"
},
Due to microsoft/windowsazure dependency with pear you must put your composer.json
"repositories": [
{
"type": "pear",
"url": "http://pear.php.net"
}
],
Type composer install or composer update.
In your app/config/app.php add in array providers:
'ridesoft\AzureCloudMap\AzureCloudMapServiceProvider'
and in array aliases:
'AzureIO' => 'ridesoft\AzureCloudMap\Facades\AzureIO',
'AzureUrl' => 'ridesoft\AzureCloudMap\Facades\AzureUrl'
now publish your configuration with:
php artisan config:publish ridesoft/azurecloudmap
Set your Azure parameters
Add to your laravel application composer:
"require": {
"ridesoft/azurecloudmap": "0.4.*"
},
Type composer install or composer update.
or
just download or clone this library
All function are documented in the API
For laravel run function from Ioc Container, using classes in the API
For functions in filesystem style, an example:
AzureIO::scandir($dir);
or for function url style:
AzureUrl::download($url);
<?php
require __DIR__.'/../vendor/autoload.php';
use ridesoft\AzureCloudMap\AzureIO;
$config = require_once 'src/config/config.php';
$azure = new AzureIO($config);
echo var_dump($azure->scandir('pdf'));
You can find similar examples in examples folder