jungehaie/laravel-filesystem-google-cloud-storage
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+
- Register the Service Provider
// config/app.php 'providers' => [ ... JungeHaie\GoogleCloudStorage\GoogleCloudStorageServiceProvider::class, ]
Lumen 5.3+
- Register the Service Provider
// bootstrap/app.php $app->register(JungeHaie\GoogleCloudStorage\GoogleCloudStorageServiceProvider::class);
- Add a configuration file at
config/filesystems.php
You can copy the content of Laravels filesystems.php
- 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
-
Where do I get a GCS key and secret?
Look no furhter! -
How do I set a GCS region?
I got you covered.
Contributing
Pull Requests
-
Add tests - Your patch won't be accepted if it doesn't have tests.
-
Document any changes - Make sure the
README.mdand 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
jungehaie/laravel-filesystem-google-cloud-storage 适用场景与选型建议
jungehaie/laravel-filesystem-google-cloud-storage 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.78k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2016 年 10 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「filesystem」 「s3」 「aws」 「laravel」 「Flysystem」 「google cloud storage」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 jungehaie/laravel-filesystem-google-cloud-storage 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jungehaie/laravel-filesystem-google-cloud-storage 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 jungehaie/laravel-filesystem-google-cloud-storage 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A SDK for working with B2 cloud storage.
A PHP class providing static methods for reading, writing, copying, moving, and deleting files and directories, MIME type detection, image size detection, and file permission management
This package includes a script and fail2ban configuration that allows you to use fail2ban when utilizing AWS elastic load balancer (ELB) and an apache webserver.
The flysystem adapter for yandex disk rest api.
Elastic Driver for Laravel Scout
A sleek PHP wrapper around rclone with Laravel-style fluent API syntax
统计信息
- 总下载量: 1.78k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-10-25