PHPackages                             richan-fongdasen/laravel-gcr-worker - 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. richan-fongdasen/laravel-gcr-worker

ActiveLibrary

richan-fongdasen/laravel-gcr-worker
===================================

Google Cloud Run Worker for Laravel

1.7.0(1y ago)469.5k↓30%1[1 PRs](https://github.com/richan-fongdasen/laravel-gcr-worker/pulls)MITPHPPHP ^8.0CI passing

Since Dec 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/richan-fongdasen/laravel-gcr-worker)[ Packagist](https://packagist.org/packages/richan-fongdasen/laravel-gcr-worker)[ Docs](https://github.com/richan-fongdasen/laravel-gcr-worker)[ RSS](/packages/richan-fongdasen-laravel-gcr-worker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (12)Versions (12)Used By (0)

[![Build](https://github.com/richan-fongdasen/laravel-gcr-worker/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/richan-fongdasen/laravel-gcr-worker/actions/workflows/main.yml)[![codecov](https://camo.githubusercontent.com/c37ad03b941dc100f7c06de9fb0b7439f833975983ddc6d8762686ed9a00d1ac/68747470733a2f2f636f6465636f762e696f2f67682f72696368616e2d666f6e67646173656e2f6c61726176656c2d6763722d776f726b65722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/richan-fongdasen/laravel-gcr-worker)[![Total Downloads](https://camo.githubusercontent.com/6b806c609afd577e6edfac4310794d5b8419fa51c6b5595963b979e60d4aca41/68747470733a2f2f706f7365722e707567782e6f72672f72696368616e2d666f6e67646173656e2f6c61726176656c2d6763722d776f726b65722f642f746f74616c2e737667)](https://packagist.org/packages/richan-fongdasen/laravel-gcr-worker)[![Latest Stable Version](https://camo.githubusercontent.com/18b1eeeed7817ed3cca140863434a5f4c1c472267c0ed31c5b6d18cc9f78761a/68747470733a2f2f706f7365722e707567782e6f72672f72696368616e2d666f6e67646173656e2f6c61726176656c2d6763722d776f726b65722f762f737461626c652e737667)](https://packagist.org/packages/richan-fongdasen/laravel-gcr-worker)[![License: MIT](https://camo.githubusercontent.com/016bd30da1ffc1cb0d102432087176cb61f8d2d08f97185e3abf8dd3ff5ae1ae/68747470733a2f2f706f7365722e707567782e6f72672f72696368616e2d666f6e67646173656e2f6c61726176656c2d6763722d776f726b65722f6c6963656e73652e737667)](https://opensource.org/licenses/MIT)

Laravel GCR Worker
==================

[](#laravel-gcr-worker)

> Simple background processing implementation with Google Cloud Run and Google Cloud Pub/Sub

Synopsis
--------

[](#synopsis)

This package would help you to implement any background processing in Laravel like queue worker or scheduled job in Google Cloud Run by handling the triggered HTTP event invocation.

Table of contents
-----------------

[](#table-of-contents)

- [Setup](#setup)
- [Configuration](#configuration)
- [Usage](#usage)
- [License](#license)

Setup
-----

[](#setup)

Install the package via Composer :

```
$ composer require richan-fongdasen/laravel-gcr-worker
```

### Laravel version compatibility

[](#laravel-version-compatibility)

Laravel versionPackage version5.7 - 8.x1.0 - 1.38.x - 11.x^1.6Configuration
-------------

[](#configuration)

Publish configuration file using `php artisan` command

```
$ php artisan vendor:publish --provider="RichanFongdasen\GCRWorker\ServiceProvider"
```

The command above would copy a new configuration file to `/config/gcr-worker.php`

```
return [

    /*
    |--------------------------------------------------------------------------
    | Allow Event invocation
    |--------------------------------------------------------------------------
    |
    | Specify whether the application would allow and handle any event
    | invocations, such as Pub/Sub topic message published events, Cloud
    | scheduler jobs, etc.
    |
    */

    'allow_event_invocation' => (bool) env('ALLOW_EVENT_INVOCATION', false),

    /*
    |--------------------------------------------------------------------------
    | Maximum Execution Time
    |--------------------------------------------------------------------------
    |
    | Set the max execution time in seconds, the default value is 15 minutes.
    |
    | Warning:
    | This value doesn't update the maximum execution time defined in your
    | nginx, apache or php-fpm configuration. You need to update them manually.
    |
    */

    'max_execution_time' => 60 * 15,

    /*
    |--------------------------------------------------------------------------
    | Middleware
    |--------------------------------------------------------------------------
    |
    | Define the middleware which should be attached in every GCR worker route.
    |
    */

    'middleware' => [
        \Illuminate\Routing\Middleware\SubstituteBindings::class,
        \RichanFongdasen\GCRWorker\Middleware\AllowEventInvocation::class,
    ],

    /*
    |--------------------------------------------------------------------------
    | Path prefix
    |--------------------------------------------------------------------------
    |
    | Define the path prefix of the Pub/Sub event handler url.
    |
    */

    'path_prefix' => 'gcr-worker',
];
```

Usage
-----

[](#usage)

The content for this section is under development.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance46

Moderate activity, may be stable

Popularity34

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 83.8% 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 ~156 days

Recently: every ~189 days

Total

11

Last Release

421d ago

PHP version history (4 changes)1.0.0PHP &gt;=7.2

1.1.0PHP ^7.2|^8.0

1.4.0PHP ^7.4|^8.0

1.6.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5222595?v=4)[Richan Fongdasen](/maintainers/richan-fongdasen)[@richan-fongdasen](https://github.com/richan-fongdasen)

---

Top Contributors

[![richan-fongdasen](https://avatars.githubusercontent.com/u/5222595?v=4)](https://github.com/richan-fongdasen "richan-fongdasen (31 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (4 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (2 commits)")

---

Tags

google-cloud-rungoogle-cloud-schedulergoogle-pubsublaravellaravel-queuelaravel-queueslaravel-schedulelaravel-schedulerlaravellaravel-package

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/richan-fongdasen-laravel-gcr-worker/health.svg)

```
[![Health](https://phpackages.com/badges/richan-fongdasen-laravel-gcr-worker/health.svg)](https://phpackages.com/packages/richan-fongdasen-laravel-gcr-worker)
```

###  Alternatives

[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[laravel/pennant

A simple, lightweight library for managing feature flags.

57711.1M53](/packages/laravel-pennant)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)

PHPackages © 2026

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