承接 wronx/php-google-cloud-storage 相关项目开发

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

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

wronx/php-google-cloud-storage

Composer 安装命令:

composer require wronx/php-google-cloud-storage

包简介

A simple PHP class to perform basic actions on Google Cloud Storage files

README 文档

README

This piece of poorly written code may help you with performing basic operations on Google Cloud Storage files. Or may not. I don't know, I'm a plumber, not a fortune-teller.

License:

Copyright © 2016 github.com/WRonX
This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.

Features:

  • downloading file from bucket
  • uploading file to bucket
  • check if file exists in bucket under specified location
  • delete file from bucket
  • ...
  • PROFIT

Installation and configuration:

php composer.phar require wronx/php-google-cloud-storage "dev-master"

Usage

Method names should be self-explanatory, so just a few words about the rest:

Caching Storage Objects

You can safely use it if you are sure nothing comes in your way.
Say you are checking if file exists (that loads Storage Object to cache), then you want to download it. But meanwhile someone deleted it. If you want to avoid such situations (if there's a possibility it can happen), disable caching.

Authorization file

This one should be downloadable from GCloud. It looks like this:

{
  "type": "service_account",
  "project_id": "your-project-id",
  "private_key_id": "your private key ID",
  "private_key": "-----BEGIN PRIVATE KEY-----\n Your private key goes here \n-----END PRIVATE KEY-----\n",
  "client_email": "something@probably-your-project-id.iam.gserviceaccount.com",
  "client_id": "clientID",
  "auth_uri": "https://accounts.google.com/o/oauth2/auth",
  "token_uri": "https://accounts.google.com/o/oauth2/token",
  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
  "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/something@probably-your-project-id.iam.gserviceaccount.com"
}

Summary

Oh, come on, I spent enough time writing readme already...

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: WTFPL
  • 更新时间: 2016-11-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固