dritux/php-queue

There is no license information available for the latest version (1.0.0) of this package.

SDK that facilitates Amazon SQS|AMQP|PUBSUB message queue production and consumption

1.0.0 2019-04-08 16:29 UTC

This package is not auto-updated.

Last update: 2024-04-17 18:46:32 UTC


README

Queue drivers for PHP

Requirements

  • PHP Extension bcmath
  • PHP Extension curl
  • PHP Extension amqp

Available adapters

  • Amazon SQS
  • AMQP
  • Google PubSub
  • InMemory Mock Tests

Installation

Then run the command:

$ composer require dritux/php-queue

Usage

See the examples directory content.

Credentials

export GOOGLE_APPLICATION_CREDENTIALS=/{path_to}/config/{credentials}.json

Commands

$ gcloud pubsub topics create php-backend
$ gcloud pubsub subscriptions create sale-subscription --topic php-backend

$ gcloud pubsub topics list
$ gcloud pubsub subscriptions list
$ gcloud projects list

$ gcloud pubsub subscriptions pull sale-subscription
$ gcloud pubsub subscriptions pull sale-subscription --limit 10
$ gcloud pubsub subscriptions delete mySubscription
$ gcloud pubsub topics delete myTopic

References

Docs
Getting Started
Publisher
Client Library Reference
Writing and responding to pubsub messages