承接 hpolthof/laravel-backblaze 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hpolthof/laravel-backblaze

Composer 安装命令:

composer require hpolthof/laravel-backblaze

包简介

Backblaze B2 Cloud Storage for Laravel 5

README 文档

README

Latest Version on Packagist Total Downloads

Backblaze B2 is a great cloud storage system that compares to Amazon S3, but uses lower pricing, so worth the try. ;-) Since I couldn't find a serviceprovider to implement B2 into the Laravel Filesystem, I wrote one myself. Feel free to use it.

Installation

Via Composer

composer require hpolthof/laravel-backblaze

Auto-discovery

By default auto-discovery is disabled. If you want the add this package manually or if you are using Laravel < 5.5, then you should add the ServiceProvider manually.

In your app.php config file add to the list of service providers:

\Hpolthof\Backblaze\BackblazeServiceProvider::class,

Add the following to your filesystems.php config file in the disks section:

'b2' => [
    'driver'         => 'b2',
    'accountId'      => env('B2_ACCOUNT_ID'),
    'applicationKey' => env('B2_APP_KEY'),
    'bucketName'     => env('B2_BUCKET'),
],

Now just add your credentials and bucketname into your .env file and you're ready to go!

B2_ACCOUNT_ID=
B2_APP_KEY=
B2_BUCKET=

Usage

Just use it as you normally would use the Storage facade.

\Storage::disk('b2')->put('test.txt', 'test')

and

\Storage::disk('b2')->get('test.txt')

Credits

License

MIT

统计信息

  • 总下载量: 20.34k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 12
  • Watchers: 1
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固