KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
laravel-baidu-bos
★ 10
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
pwdhash
:
pwdhash is a Go package for securely hashing passwords and for checking plaintext password guesses against a hashed password.
todobackend-scotty-persistent
:
Deprecated in favor of todobackend-haskell
webserver-benchmarks
:
:bar_chart: Benchmarking web servers with aero, express, koa, restify and raw API.
attrvalidate
:
A small jQuery plugin for form validation using element attributes only
mobile-notes
:
Make notes on your phone using markdown, stored in local storage using Backbone.js
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
laravel-baidu-bos
?
Download (.md)
# laravel-baidu-bos A Flysystem Baidu Bos Wrapper for Laravel [](https://github.com/zhuxiaoqiao) [](https://raw.githubusercontent.com/zhuxiaoqiao/laravel-baidu-bos/master/LICENSE) [](https://packagist.org/packages/zhuxiaoqiao/laravel-baidu-bos) [](https://packagist.org/packages/zhuxiaoqiao/laravel-baidu-bos) ## Installation ```bash composer require "zhuxiaoqiao/laravel-baidu-bos": "~1.0" ``` or add the following line to your project's `composer.json`: ```json "require": { "zhuxiaoqiao/laravel-baidu-bos": "~1.0" } ``` then ```shell composer update ``` After completion of the above, add the following line to the section `providers` of `config/app.php`: ```php 'Zhuxiaoqiao\LaravelBaiduBos\BaiduBosFilesystemServiceProvider', ``` ## Configuration Edit `config\filesystems.php`: Add bos disk ```php '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 ```php $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](http://laravel.com/docs/5.0/filesystem).