Download the PHP package sykescottages/qu without Composer

On this page you can find all versions of the php package sykescottages/qu. 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 qu

Qu

Build Status Coverage Status Latest Stable Version Total Downloads Latest Unstable Version

This package has been designed to switch out queue providers using a Queue & Consumer interface. You can use this package with RabbitMQ & SQS to seamlessly switch between the two.

Requirements

Install

Install via Composer:

composer require sykescottages/qu

Examples

In the examples folder you can see how to use this with both providers. The interfaces are the same and you only need to update the user credentials to match your environment.

We've bundled the queues in docker so you should be able to run examples locally if you clone this repository.

docker-compose up -d will start the RabbitMQ and SQS containers and you can run the examples locally.

Supported Queues

RabbitMQ

Links

These links are only available when the docker container is running

Name Link
Queue http://localhost:48888
Management Console http://localhost:29852

Options

Option Description Default Values
blockingConsumer Whether the consume method should block execution or only process 1 message true true/false
prefetchSize Get the limit of messages that can be consumed by the channel null any numeric value
prefetchCount The limit of messages that we fetch from the queue 1 any numeric value
consumerTag A tag for the consumer default.consumer.tag any value

SQS

Links

These links are only available when the docker container is running

Name Link
Queue http://localhost:41662

Options

Option Description Default Values
blockingConsumer Whether the consume method should block execution or only process 1 message true true/false
pollTime Set the consumer to do short polling or long polling 20 0-20
maxNumberOfMessagesPerConsume The amount of messages each poll/consume will retrieve from the queue 1 1-10

All versions of qu with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
php-amqplib/php-amqplib Version ^2.8
aws/aws-sdk-php Version ^3.69
ext-json Version *
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 sykescottages/qu contains the following files

Loading the files please wait ....