2017 © Pedro Peláez
 

library laravel-baidu-bos

A Flysystem Baidu Bos Wrapper for Laravel

image

hinet/laravel-baidu-bos

A Flysystem Baidu Bos Wrapper for Laravel

  • Tuesday, December 6, 2016
  • by hinet
  • Repository
  • 1 Watchers
  • 0 Stars
  • 85 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 6 % Grown

The README.md

laravel-baidu-bos

Laravel百度云文件存储引擎, (*1)

Author Software License Packagist Version Total Downloads, (*2)

Installation

composer require "hinet/laravel-baidu-bos": "~1.0"

or add the following line to your project's composer.json:, (*3)

"require": {
   "hinet/laravel-baidu-bos": "~1.0"
}

then, (*4)

composer update

After completion of the above, add the following line to the section providers of config/app.php:, (*5)

Hinet\Baidu\BaiduServiceProvider::class,

Configuration

Edit config\filesystems.php: Add bos disk, (*6)

    'disks' => [

        'local' => [
            'driver' => 'local',
            'root'   => storage_path().'/app',
        ],

        's3' => [
            'driver' => 's3',
            'key'    => 'your-key',
            'secret' => 'your-secret',
            'region' => 'your-region',
            'bucket' => 'your-bucket',
        ],

        'rackspace' => [
            'driver'    => 'rackspace',
            'username'  => 'your-username',
            'key'       => 'your-key',
            'container' => 'your-container',
            'endpoint'  => 'https://identity.api.rackspacecloud.com/v2.0/',
            'region'    => 'IAD',
            'url_type'  => 'publicURL'
        ],

        'bos' => [
            'driver' => 'bos',
            'bucket' => 'your-bucket-name',
            'options' => [
                'credentials' => [
                    'ak' => 'your-ak',
                    'sk' => 'your-sk',
                ],
                'endpoint' => 'http://bj.bcebos.com',
            ]
        ],
    ],

Usage

$exists = Storage::disk('bos')->exists('path/to/file');
$content = Storage::disk('bos')->get('path/to/file');

Official Documentation

Documentation for laravel framework 'Filesystem/Cloud Storage' can be found on the Laravel website., (*7)

The Versions

06/12 2016

dev-master

9999999-dev

A Flysystem Baidu Bos Wrapper for Laravel

  Sources   Download

MIT

The Requires

 

by Zhu Xiaoqiao

05/12 2016

v1.0.4

1.0.4.0

A Flysystem Baidu Bos Wrapper for Laravel

  Sources   Download

MIT

The Requires

 

by Zhu Xiaoqiao

21/05 2015

v1.0.3

1.0.3.0

A Flysystem Baidu Bos Wrapper for Laravel

  Sources   Download

MIT

The Requires

 

by Zhu Xiaoqiao

20/05 2015

v1.0.2

1.0.2.0

A Flysystem Baidu Bos Wrapper for Laravel

  Sources   Download

MIT

The Requires

 

by Zhu Xiaoqiao

19/05 2015

v1.0.1

1.0.1.0

A Flysystem Baidu Bos Wrapper for Laravel

  Sources   Download

MIT

The Requires

 

by Zhu Xiaoqiao

19/05 2015

1.0.0

1.0.0.0

A Flysystem Baidu Bos Wrapper for Laravel

  Sources   Download

MIT

The Requires

 

by Zhu Xiaoqiao