Download the PHP package firevel/cloud-tasks-queue-driver without Composer

On this page you can find all versions of the php package firevel/cloud-tasks-queue-driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package cloud-tasks-queue-driver

Cloud Tasks Queue Driver for Laravel

tests

A Laravel queue driver for Google Cloud Tasks, enabling serverless job processing for applications running on Google App Engine or Google Cloud Run.

Compatible with both Firevel and standard Laravel applications.

Requirements

Installation

The package auto-discovers and registers itself via Laravel's package discovery.

Configuration

Add the connection to your config/queue.php:

Set your default queue connection in .env:

Note: The location must match your App Engine or Cloud Run region.

Configuration Options

Option Description
project Google Cloud project ID
location Cloud Tasks queue location (must match your compute region)
queue_name Default queue name
route HTTP endpoint path for task callbacks
service App Engine service name (falls back to the GAE_SERVICE env variable when not set)
version App Engine version to route tasks to (when not set, tasks go to the service's default version)
url Custom URL for Cloud Run or when behind a proxy/load balancer

Cloud Tasks Setup

Create a queue using gcloud:

Or via queue.yaml:

See the Cloud Tasks documentation for advanced queue configuration.

Usage

Use Laravel's standard queue API:

Note: Queue names map directly to Cloud Tasks queues, so onQueue('orders') requires a Cloud Tasks queue named orders to exist.

How It Works

Unlike traditional queue drivers, there is no queue:work process. Cloud Tasks delivers each job back to your application over HTTP:

  1. Dispatching a job creates a Cloud Task with the serialized job as its payload, signed with an HMAC-SHA256 signature derived from your APP_KEY.
  2. Cloud Tasks sends the payload via HTTP POST to the handler route (/_cloudtasks by default), which the package registers automatically.
  3. The handler verifies the signature, rejects unauthenticated requests with a 403, and processes valid jobs through Laravel's queue worker.

Note: Since job payloads are signed with APP_KEY, rotating the key will invalidate tasks that were queued before the rotation.

Retries, Attempts and Overlapping

Routing Behavior

Testing

The test suite uses Orchestra Testbench and runs without any Google Cloud credentials (the Cloud Tasks client is mocked).

Tests run automatically via GitHub Actions on PHP 8.2, 8.3, and 8.4 for every push and pull request.

License

MIT


All versions of cloud-tasks-queue-driver with dependencies

PHP Build Version
Package Version
Requires google/cloud-tasks Version ^1.8
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package firevel/cloud-tasks-queue-driver contains the following files

Loading the files please wait ...