定制 jungehaie/laravel-filesystem-google-cloud-storage 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

jungehaie/laravel-filesystem-google-cloud-storage

最新稳定版本:1.0.0

Composer 安装命令:

composer require jungehaie/laravel-filesystem-google-cloud-storage

包简介

A Laravel Flysystem implementation for the Google Cloud Storage via a S3Client.

README 文档

README

A Laravel Flysystem implementation for the Google Cloud Storage via a S3Client.

Getting started

Installation

You can install this package via composer using this command:

composer require jungehaie/filesystem-google-cloud-storage

Laravel 5.3+

  1. Register the Service Provider
// config/app.php
'providers' => [
    ...
    JungeHaie\GoogleCloudStorage\GoogleCloudStorageServiceProvider::class,
]

Lumen 5.3+

  1. Register the Service Provider
// bootstrap/app.php
$app->register(JungeHaie\GoogleCloudStorage\GoogleCloudStorageServiceProvider::class);
  1. Add a configuration file at config/filesystems.php

You can copy the content of Laravels filesystems.php

  1. Register the configuration to be loaded
// bootstrap/app.php
$app->configure('filesystems');

Now you're all set!

Configuration

Your basic config/filesystems.php disk entry could look like this:

'google' => [
    'driver' => 'gcs',
    'key'    => env('GCS_KEY'),
    'secret' => env('GCS_SECRET'),
    'region' => env('GCS_REGION'),
    'bucket' => env('GCS_BUCKET'),

This will often be enough to get you started.
However you can also set following options:

  • base_url
  • version
  1. Where do I get a GCS key and secret?
    Look no furhter!

  2. How do I set a GCS region?
    I got you covered.

Contributing

Pull Requests

  • PSR-2 Coding Standard

  • Add tests - Your patch won't be accepted if it doesn't have tests.

  • Document any changes - Make sure the README.md and any other relevant documentation are kept up-to-date.

  • Create feature branches - Use git checkout -b my-new-feature

  • One pull request per feature - If you want to do more than one thing, send multiple pull requests.

  • Send coherent history - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting.

Licence

This library is distributed under the terms of the MIT license

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-10-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固