bashi/storage-laravel

There is no license information available for the latest version (1.1) of this package.

Installs: 36

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/bashi/storage-laravel

1.1 2018-10-29 12:23 UTC

This package is not auto-updated.

Last update: 2025-11-05 17:21:53 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
//             )
        
//         )
    
//     )