fileio / dag-client
iij gio dag client for laravel5
Installs: 119
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/fileio/dag-client
This package is not auto-updated.
Last update: 2025-10-30 00:20:02 UTC
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
}
);