ridesoft / AzureCloudMap by ridesoft

PHP Utility library to interface with Microsoft Windows Azure Cloud API filesystem that works as in Laravel 4.2 as in pure php.
54
0
2
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

Latest Stable Version Total Downloads Latest Unstable Version License

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