ridesoft/azurecloudmap
最新稳定版本:0.4.4
Composer 安装命令:
composer require 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.
README 文档
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
统计信息
- 总下载量: 55
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-12