PHPackages                             nathandunn/gcs-url-generator - 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. nathandunn/gcs-url-generator

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

nathandunn/gcs-url-generator
============================

Google Cloud Storage URL Generator for spatie/laravel-medialibrary.

1.1(5y ago)23.1k2MITPHPPHP ^7.3.0 || ^8.0

Since Dec 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/nthndnn/gcs-url-generator)[ Packagist](https://packagist.org/packages/nathandunn/gcs-url-generator)[ RSS](/packages/nathandunn-gcs-url-generator/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Google Cloud Storage URL Generator
==================================

[](#google-cloud-storage-url-generator)

Google Cloud Storage URL Generator package for [spatie/laravel-medialibrary](https://github.com/spatie/laravel-medialibrary) and [superbalist/laravel-google-cloud-storage](https://github.com/Superbalist/laravel-google-cloud-storage).

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

[](#installation)

### superbalist/laravel-google-cloud-storage

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

Install the superbalist/laravel-google-cloud-storage dependency.

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

```

Visit the [superbalist/laravel-google-cloud-storage](https://github.com/Superbalist/laravel-google-cloud-storage) repository and follow the installation instructions to finish set up.

### nathandunn/gcs-url-generator

[](#nathandunngcs-url-generator)

Install the nathandunn/gcs-url-generator dependency using:

```
composer require nathandunn/gcs-url-generator

```

### spatie/laravel-medialibrary

[](#spatielaravel-medialibrary)

Install the spatie/laravel-medialibrary dependency using:

```
composer require "spatie/laravel-medialibrary:^7.0.0"

```

In order to change the URL generator, you will need to publish the laravel-medialibrary config file. You can achive this using the following artisan command:

```
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="config"

```

In `medialibrary.php` register the Google Cloud Storage domain as follows:

```
'gcs' => [
    'domain' => 'https://storage.cloud.google.com/'. env('GOOGLE_CLOUD_STORAGE_BUCKET'),
],

```

In the same file, register the URL generator class:

```
/*
 * When urls to files get generated, this class will be called. Leave empty
 * if your files are stored locally above the site root or on s3.
 */
'url_generator' => NathanDunn\UrlGenerator\GcsUrlGenerator::class,

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Total

2

Last Release

1985d ago

PHP version history (2 changes)1.0PHP &gt;=7.1.0

1.1PHP ^7.3.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2cfa98e05be85f27d46b66803993a1b752a9c81dd448ca22f18f2a85ce050e1c?d=identicon)[nathandunn](/maintainers/nathandunn)

---

Top Contributors

[![nthndnn](https://avatars.githubusercontent.com/u/1976300?v=4)](https://github.com/nthndnn "nthndnn (3 commits)")

---

Tags

gcpgcslaravellaravel-medialibrary

### Embed Badge

![Health badge](/badges/nathandunn-gcs-url-generator/health.svg)

```
[![Health](https://phpackages.com/badges/nathandunn-gcs-url-generator/health.svg)](https://phpackages.com/packages/nathandunn-gcs-url-generator)
```

###  Alternatives

[dmitrybubyakin/nova-medialibrary-field

Laravel Nova field for managing the Spatie media library.

268612.7k2](/packages/dmitrybubyakin-nova-medialibrary-field)[ahmed-aliraqi/laravel-media-uploader

This package used to upload files using laravel-media-library

34024.3k3](/packages/ahmed-aliraqi-laravel-media-uploader)[backpack/medialibrary-uploaders

Helper functions to save files with spatie media library

1373.3k](/packages/backpack-medialibrary-uploaders)[josefbehr/filament-spatie-media-library-croppie

A filament form field for image upload using spatie media library and croppie.js

126.6k](/packages/josefbehr-filament-spatie-media-library-croppie)[gaspertrix/laravel-backpack-dropzone-field

Add Dropzone support for Laravel Backpack

172.2k](/packages/gaspertrix-laravel-backpack-dropzone-field)

PHPackages © 2026

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