PHPackages                             glueful/storage-gcs - 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. glueful/storage-gcs

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

glueful/storage-gcs
===================

Google Cloud Storage driver for the Glueful framework.

v1.0.1(1mo ago)02MITPHPPHP ^8.3

Since Jun 11Pushed 1mo agoCompare

[ Source](https://github.com/glueful/storage-gcs)[ Packagist](https://packagist.org/packages/glueful/storage-gcs)[ Docs](https://github.com/glueful/storage-gcs)[ RSS](/packages/glueful-storage-gcs/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (12)Versions (4)Used By (0)

Glueful Storage GCS
===================

[](#glueful-storage-gcs)

Google Cloud Storage driver for Glueful.

Install
-------

[](#install)

```
composer require glueful/storage-gcs
php glueful extensions:enable storage-gcs
```

The package auto-registers as a Glueful extension through `extra.glueful.provider`. After install, any disk with `driver => gcs` is resolved by `GcsStorageDriverFactory`.

Configuration
-------------

[](#configuration)

Add a disk under `config/storage.php`:

```
'gcs' => [
    'driver' => 'gcs',
    'bucket' => env('GCS_BUCKET'),
    'project_id' => env('GCS_PROJECT_ID'),
    'key_file' => env('GCS_KEY_FILE'), // path to service-account JSON
    'prefix' => env('GCS_PREFIX', ''),
    'signed_ttl' => (int) env('GCS_SIGNED_URL_TTL', 3600),
    'max_signed_ttl' => (int) env('GCS_MAX_SIGNED_URL_TTL', 86400),
],
```

Environment variables:

```
GCS_BUCKET=app-bucket
GCS_PROJECT_ID=my-google-cloud-project
GCS_KEY_FILE=/absolute/path/to/service-account.json
GCS_PREFIX=
GCS_SIGNED_URL_TTL=3600
GCS_MAX_SIGNED_URL_TTL=86400
```

`key_file` is optional for filesystem construction when your runtime already has Application Default Credentials. Native V4 signed URLs need credentials capable of local signing, so service-account JSON is the normal production configuration.

Native URLs
-----------

[](#native-urls)

The framework always supports app-signed blob URLs through `/blobs/{uuid}`. Direct provider URLs are opt-in and visibility-scoped:

```
// config/uploads.php
'native_urls' => [
    'disks' => [
        'gcs' => [
            'enabled' => true,
            'public' => true,
            'private' => false,
            'private_ttl' => 300,
        ],
    ],
    'max_private_ttl' => 900,
],
```

Private native URLs are bearer tokens from Google Cloud Storage. Keep them short-lived and prefer the app-signed URL when application-side authorization or revocation matters. Direct provider URL TTLs are clamped by the disk's `max_signed_ttl` value, which defaults to 86400 seconds.

Diagnostics
-----------

[](#diagnostics)

Run a read-only check:

```
php glueful storage:test gcs
```

Run a write/read/delete smoke test only when you want to verify write permissions:

```
php glueful storage:test gcs --write
```

Development
-----------

[](#development)

```
composer test
composer run analyze
composer run phpcs
```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance91

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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 ~2 days

Total

2

Last Release

42d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/95650726?v=4)[msowah](/maintainers/msowah)[@msowah](https://github.com/msowah)

---

Top Contributors

[![MichaelSowah](https://avatars.githubusercontent.com/u/24699905?v=4)](https://github.com/MichaelSowah "MichaelSowah (7 commits)")

---

Tags

Flysystemstoragegcsgoogle cloudglueful

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/glueful-storage-gcs/health.svg)

```
[![Health](https://phpackages.com/badges/glueful-storage-gcs/health.svg)](https://phpackages.com/packages/glueful-storage-gcs)
```

###  Alternatives

[google/cloud

Google Cloud Client Library

1.2k16.7M57](/packages/google-cloud)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.7k285.7M1.1k](/packages/league-flysystem-aws-s3-v3)[league/flysystem-google-cloud-storage

Google Cloud Storage adapter for Flysystem.

2419.4M71](/packages/league-flysystem-google-cloud-storage)[league/flysystem-async-aws-s3

AsyncAws S3 filesystem adapter for Flysystem.

3012.1M44](/packages/league-flysystem-async-aws-s3)[nimbusoft/flysystem-openstack-swift

Flysystem adapter for OpenStack Swift

44818.0k7](/packages/nimbusoft-flysystem-openstack-swift)[sausin/laravel-ovh

OVH Object Storage driver for laravel

42161.8k](/packages/sausin-laravel-ovh)

PHPackages © 2026

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