PHPackages                             wronx/php-google-cloud-storage - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. wronx/php-google-cloud-storage

ActiveLibrary[File &amp; Storage](/categories/file-storage)

wronx/php-google-cloud-storage
==============================

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

v0.91-RC1(9y ago)09WTFPLPHP

Since Nov 28Pushed 9y ago1 watchersCompare

[ Source](https://github.com/WRonX/PHPGoogleCloudStorage)[ Packagist](https://packagist.org/packages/wronx/php-google-cloud-storage)[ Docs](https://github.com/WRonX/PHPGoogleCloudStorage)[ RSS](/packages/wronx-php-google-cloud-storage/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

PHP Google Cloud Storage
------------------------

[](#php-google-cloud-storage)

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:

[](#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  for more details.

#### Features:

[](#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:

[](#installation-and-configuration)

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

#### Usage

[](#usage)

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

###### Caching Storage Objects

[](#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

[](#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

[](#summary)

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

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~57 days

Total

2

Last Release

3400d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/555cc453c9565f372984ee4f53450d1e24738ecc142828c51716117db47ecac5?d=identicon)[WRonX](/maintainers/WRonX)

---

Top Contributors

[![WRonX](https://avatars.githubusercontent.com/u/2788306?v=4)](https://github.com/WRonX "WRonX (5 commits)")

---

Tags

phpcloudgooglestorage

### Embed Badge

![Health badge](/badges/wronx-php-google-cloud-storage/health.svg)

```
[![Health](https://phpackages.com/badges/wronx-php-google-cloud-storage/health.svg)](https://phpackages.com/packages/wronx-php-google-cloud-storage)
```

###  Alternatives

[league/flysystem

File storage abstraction for PHP

13.6k639.1M2.2k](/packages/league-flysystem)[google/cloud

Google Cloud Client Library

1.2k16.2M53](/packages/google-cloud)[rsd/seafile-php-sdk

This is a PHP package for accessing Seafile Web API

3589.1k](/packages/rsd-seafile-php-sdk)[craftcms/google-cloud

Google Cloud Storage integration for Craft CMS

11100.7k1](/packages/craftcms-google-cloud)[beberlei/azure-blob-storage

Small library to access Microsoft Windows Azure Blob Storage with a Service or a StreamWrapper.

2352.4k2](/packages/beberlei-azure-blob-storage)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
