PHPackages                             nmc/laravel-cloud-tasks - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nmc/laravel-cloud-tasks

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nmc/laravel-cloud-tasks
=======================

This is my package LaravelCloudTask

v3.0.1(3w ago)02.0kMITPHPPHP ^8.3|^8.4|^8.5

Since May 23Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/new-media-communications/laravel-cloud-tasks)[ Packagist](https://packagist.org/packages/nmc/laravel-cloud-tasks)[ Docs](https://github.com/nmc/laravel-cloud-tasks)[ RSS](/packages/nmc-laravel-cloud-tasks/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (9)Dependencies (12)Versions (11)Used By (0)

Google Cloud Tasks For Laravel
==============================

[](#google-cloud-tasks-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/bc28c2b47552ac68574dcf474bcf6a36d32b81d1b33f8d6fab4c132a083020ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6d632f6c61726176656c2d636c6f75642d7461736b732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nmc/laravel-cloud-tasks)[![Total Downloads](https://camo.githubusercontent.com/7c5247919e4e0a04cfe0ffd1e6f7c66310b48e98e174d38694319e46d6e757fa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6d632f6c61726176656c2d636c6f75642d7461736b732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nmc/laravel-cloud-tasks)

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

[](#installation)

You can install the package via composer:

```
composer require nmc/laravel-cloud-tasks
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Nmc\CloudTasks\CloudTasksServiceProvider" --tag="cloud-tasks-config"
```

This is the contents of the published config file:

```
use Nmc\CloudTasks\Http\Middleware\VerifyCloudTasksToken;

return [
    'middleware' => ['api', VerifyCloudTasksToken::class],
    'queue' => [
        'driver' => 'cloud-tasks',
        'project' => env('CLOUD_TASKS_PROJECT_ID'),
        'location' => env('CLOUD_TASKS_LOCATION'),
        'queue' => env('CLOUD_TASKS_QUEUE', 'default'),
        'handler_url' => env('CLOUD_TASKS_HANDLER_URL', env('APP_URL') . '/cloud-tasks-handler'),
        'credentials' => env('CLOUD_TASKS_CREDENTIALS', config_path('credentials.json')),
        'auth' => [
            'enabled' => env('CLOUD_TASKS_AUTH_ENABLED', true),
            'allowed_emails' => env('CLOUD_TASKS_AUTH_ALLOWED_EMAILS', null),
            'service_account_email' => env('CLOUD_TASKS_SERVICE_ACCOUNT_EMAIL'),
            'audience' => env('CLOUD_TASKS_AUDIENCE'),
        ],
        'after_commit' => false,
    ]
];
```

Credentials
-----------

[](#credentials)

The `credentials` config value is optional. Set it to a service-account key file path (or JSON string) to authenticate explicitly, or omit it to fall back to [Application Default Credentials](https://cloud.google.com/docs/authentication/application-default-credentials)— the queue no longer errors when the value is absent.

Authentication
--------------

[](#authentication)

When `auth.enabled` is `true` (the default), each task is dispatched with an [OIDC token](https://cloud.google.com/tasks/docs/creating-http-target-tasks#token)so Google Cloud Tasks signs its request to your handler, and the `VerifyCloudTasksToken` middleware rejects any request that isn't signed by an allowed service account.

Env varDescription`CLOUD_TASKS_AUTH_ENABLED`Enable OIDC signing on dispatch and verification on the handler. Defaults to `true`. Set to `false` to disable auth entirely.`CLOUD_TASKS_AUTH_ALLOWED_EMAILS`Comma-separated list of service-account emails allowed to invoke the handler. When empty, the application's own [default service account](https://cloud.google.com/docs/authentication/application-default-credentials) is used.`CLOUD_TASKS_SERVICE_ACCOUNT_EMAIL`Service account used to mint the OIDC token when dispatching a task. Defaults to the application default credentials identity.`CLOUD_TASKS_AUDIENCE`Audience (`aud`) claim for the OIDC token. Defaults to the handler URL.> **Upgrading:** auth is now enabled by default. If your app relied on the handler being unauthenticated, set `CLOUD_TASKS_AUTH_ENABLED=false`, or make sure Application Default Credentials are available so a service-account identity can be resolved on both ends.

Credits
-------

[](#credits)

- [Fitim Vata](https://github.com/fitimvata)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance83

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 81.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 ~145 days

Recently: every ~50 days

Total

9

Last Release

21d ago

Major Versions

v1.2.2 → v2.0.02026-03-19

v2.0.0 → v3.0.02026-07-28

PHP version history (4 changes)v1.0.0PHP ^8.1|^8.2

v1.0.1PHP ^8.1|^8.2|^8.3

v1.2.0PHP ^8.1|^8.2|^8.3|^8.4

v2.0.0PHP ^8.3|^8.4|^8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/21b3438337776ee3262782e5de2056e8a9d851a575078d741da69ba7c43e7876?d=identicon)[fitimvata](/maintainers/fitimvata)

---

Top Contributors

[![fitimvata](https://avatars.githubusercontent.com/u/12052390?v=4)](https://github.com/fitimvata "fitimvata (9 commits)")[![spiro-lesi](https://avatars.githubusercontent.com/u/65179467?v=4)](https://github.com/spiro-lesi "spiro-lesi (2 commits)")

---

Tags

laravelnmclaravel-cloud-tasks

### Embed Badge

![Health badge](/badges/nmc-laravel-cloud-tasks/health.svg)

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

###  Alternatives

[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329575.9k35](/packages/codewithdennis-filament-select-tree)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3915.5k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

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