fileio/dag-client
Composer 安装命令:
composer require fileio/dag-client
包简介
iij gio dag client for laravel5
README 文档
README
Laravel package of Gio Dag client (http://docs.dag.iijgio.com/analysis/library/php.html)
Install
Require library
$ composer require fileio/dag-client:0.0.5
Setup
Add dag directive to config/filesystems.php under disks
'dag' => [
'driver' => 'dag',
'key' => 'access_key',
'secret' => 'secret_key',
'bucket' => 'bukcet_name',
],
Register provider in config/app.php under providers
Gio\IijDagClient\Providers\GioServiceProvider::class
Register Facade in config/app.php under aliases
'GioIijDagClient' => Gio\IijDagClient\Facade\GioIijDagClient::class
Multipart file download
GioIijDagClient::readStreamAsync($path,
function($data) {
// called everytime data is downloaded from dag
},
function() use (&$finished) {
// called when download finishes
}
);
统计信息
- 总下载量: 119
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-05-02