bashi / storage-laravel
There is no license information available for the latest version (1.1) of this package.
1.1
2018-10-29 12:23 UTC
Requires
- guzzlehttp/guzzle: ^6.3
This package is not auto-updated.
Last update: 2025-01-15 13:16:36 UTC
README
<?php
require_once './vendor/autoload.php';
use Bashi\CloudStorage;
$storage = new CloudStorage('http://xxx.com', 'appId', 'appKey');
$options = [
'file_name'=>'1_4.png',
'type'=>'',
'path'=>''
];
$rel = $storage->upload(fopen('./1_4.png', 'r'),$options);
// Array
// (
// [code] => 0
// [msg] => success
// [data] => Array
// (
// [hash] => FuNh6GRc8J__GsN3vPoarykmuo2y
// [key] => education/1_4.png
// [domains] => Array
// (
// [0] => bskjtestqn.h5more.com
// )
// )
// )