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. [Queues &amp; Workers](/categories/queues)
4. /
5. richan-fongdasen/laravel-gcr-worker

ActiveLibrary[Queues &amp; Workers](/categories/queues)

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

Google Cloud Run Worker for Laravel

1.7.0(1y ago)471.7k↓46.7%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 today

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

42

—

FairBetter than 88% of packages

Maintenance42

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

466d 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.7k15.1M131](/packages/laravel-pulse)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M306](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)

PHPackages © 2026

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