ridesoft / azurecloudmap
PHP Utility library to interface with Microsoft Windows Azure Cloud API filesystem that works as in Laravel 4.2 as in pure php.
Requires
- microsoft/windowsazure: *
- pear-pear.php.net/http_request2: *
- pear-pear.php.net/mail_mime: *
- pear-pear.php.net/mail_mimedecode: *
Requires (Dev)
- phpunit/phpunit: 4.4.*
README
AzureCloudMap
PHP Utility library to interface with Microsoft Azure Cloud API filesystem that works as in Laravel 4.2 as in pure php.
Here API
Use it in Laravel
Install
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
Use it pure PHP
Install
Add to your laravel application composer:
"require": {
"ridesoft/azurecloudmap": "0.4.*"
},
Type composer install or composer update.
or
just download or clone this library
Functions and API
All function are documented in the API
Laravel
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);
Pure Php
<?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