PHPackages                             halalsoft/laravel-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. halalsoft/laravel-google-cloud-storage

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

halalsoft/laravel-google-cloud-storage
======================================

A Google Cloud Storage flysystem for Laravel

v0.2.2(5y ago)15.1kMITPHPPHP &gt;=7.0.0

Since Jul 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/HalalSoft/laravel-google-cloud-storage)[ Packagist](https://packagist.org/packages/halalsoft/laravel-google-cloud-storage)[ RSS](/packages/halalsoft-laravel-google-cloud-storage/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (3)Dependencies (4)Versions (9)Used By (0)

Laravel Google Cloud Storage
============================

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

A Google Cloud Storage filesystem for Laravel.

[![StyleCI](https://camo.githubusercontent.com/5aff3e0d7a1ca31ef5ee7957ffafea9db6bc9af432681cc1061fc752ee0194ab/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3237373438383233352f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/277488235?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e372ce049f615b5945979d6cc5e5c2a0f6f125275d703a806d4d4dfc3cb3f1a8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f48616c616c536f66742f6c61726176656c2d676f6f676c652d636c6f75642d73746f726167652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/HalalSoft/laravel-google-cloud-storage/?branch=master)[![Codacy Badge](https://camo.githubusercontent.com/dc3697f6bb7373ca6cf7280eac4c29b39a1911b448ae2953661b4a3389d7a018/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3831303838313232326437663431653762613066313439393834313864633030)](https://www.codacy.com/gh/HalalSoft/laravel-google-cloud-storage?utm_source=github.com&utm_medium=referral&utm_content=HalalSoft/laravel-google-cloud-storage&utm_campaign=Badge_Grade)[![Code Intelligence Status](https://camo.githubusercontent.com/65c5d0cbe30ef8d848d891a5253a82c28582e8623845ac25f14d525a6a92ce16/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f48616c616c536f66742f6c61726176656c2d676f6f676c652d636c6f75642d73746f726167652f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)[![Build Status](https://camo.githubusercontent.com/54672050879418e41d94a379543f6de9708f49a8bb69ecd54bcf249596898202/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f48616c616c536f66742f6c61726176656c2d676f6f676c652d636c6f75642d73746f726167652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/HalalSoft/laravel-google-cloud-storage/build-status/master)[![GitHub repo size](https://camo.githubusercontent.com/c214868be0296fe57a5252a4295d7641f1ee72d9b2545d8f6ae6a03aea5c8417/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f68616c616c736f66742f6c61726176656c2d676f6f676c652d636c6f75642d73746f726167653f6c6162656c3d5265706f7369746f727925323073697a65)](https://github.com/neneone/SnapeBot)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![GitHub top language](https://camo.githubusercontent.com/ce923e887d52821ca33e0f1aec6b9bae1a9ba08ab8cfa49c446fb84ee7863406/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f746f702f6e656e656f6e652f536e617065426f743f6c6162656c3d504850)](https://github.com/neneone/SnapeBot)[![Packagist Version](https://camo.githubusercontent.com/7197f8aff299c70a2d24cabe82ca48f9aa65b61f4a8e3a535a8f9fdaf47641fe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68616c616c736f66742f6c61726176656c2d676f6f676c652d636c6f75642d73746f726167652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/halalsoft/laravel-google-cloud-storage)[![Total Downloads](https://camo.githubusercontent.com/84810e1bd01a3066eead929354cdd3039374ae0db149814ef61fb5e0f55b8cc0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68616c616c736f66742f6c61726176656c2d676f6f676c652d636c6f75642d73746f726167652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/halalsoft/laravel-google-cloud-storage)

This is using [flysystem-aws-s3-v3](https://packagist.org/packages/league/flysystem-aws-s3-v3). Because Google Cloud Storage uses the same api as Amazon S3, so actually I just use the same driver but I renamed to gcs.

Installation
------------

[](#installation)

```
composer require halalsoft/laravel-google-cloud-storage

```

Add a new disk to your `filesystems.php` config

```
'gcs' => [
        'driver'   => 'gcs',
        'key'      => env('GCP_ACCESS_KEY_ID'),
        'secret'   => env('GCP_SECRET_ACCESS_KEY'),
        'bucket'   => env('GCP_BUCKET'),
],
```

Above is the config that required, here is other possible configs:

```
'gcs' => [
        'driver'   => 'gcs',
        'key'      => env('GCP_ACCESS_KEY_ID'),
        'secret'   => env('GCP_SECRET_ACCESS_KEY'),
        'bucket'   => env('GCP_BUCKET'),
        'visibility' => 'public', //Default visibility, you can set public or private
        'url'    => "https://custom.domain.com", //Your public URL (if you use custom domain or CDN)
        'endpoint' => "https://storage.googleapis.com", //Your endpoint URL (if you use custom driver)
        'cache' => [
            'store' => 'memcached',
            'expire' => 600,
            'prefix' => 'cache-prefix',
          ],
],
```

Usage
-----

[](#usage)

You can use most of [Laravel Filesystem API](https://laravel.com/docs/7.x/filesystem)

Examples:

```
$disk = Storage::disk('gcs');

// create a file
$disk->put('avatars/1', $request->file("image"));

// check if a file exists
$exists = $disk->exists('image.jpg');

// get file last modification date
$time = $disk->lastModified('image1.jpg');

// copy a file
$disk->copy('old/image1.jpg', 'new/image1.jpg');

// move a file
$disk->move('old/image1.jpg', 'new/image1.jpg');

// get url to file
$url = $disk->url('avatar/yaskur.jpg');
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Total

6

Last Release

2047d ago

PHP version history (3 changes)v0.1.0PHP &gt;=5.5.9

v0.1.1PHP &gt;=5.6.0

v0.2.0PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/f15ba8f975a0fda655b8ad78a00658945371b4fe346f4b88af19d175d55878c3?d=identicon)[dyaskur](/maintainers/dyaskur)

---

Top Contributors

[![dyaskur](https://avatars.githubusercontent.com/u/9539970?v=4)](https://github.com/dyaskur "dyaskur (17 commits)")

---

Tags

Flysystemlaravelgooglestoragegcs

### Embed Badge

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

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

###  Alternatives

[zing/laravel-flysystem-obs

Flysystem Adapter for OBS

1211.2k](/packages/zing-laravel-flysystem-obs)[sausin/laravel-ovh

OVH Object Storage driver for laravel

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

PHPackages © 2026

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