Skip to content

Commit

Permalink
Initial Qu commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Hughes committed Jan 15, 2019
0 parents commit a1ea142
Show file tree
Hide file tree
Showing 31 changed files with 5,006 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coverage
.idea
vendor
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Qu
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.

## 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 PHP, RabbitMQ, SQS containers and you can run the examples locally.

## Available Queues
### RabbitMQ

Management: http://localhost:29852
Queue http://localhost:48888

### SQS
Queue http://localhost:41662
42 changes: 42 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "sykescottages/qu",
"type": "library",
"description": "",
"authors": [
{
"name": "Richard Hughes",
"role": "developer"
}
],
"require": {
"php": ">=7.2",
"php-amqplib/php-amqplib": "^2.8",
"aws/aws-sdk-php": "^3.69",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^7.5",
"mockery/mockery": "^1.2",
"jakub-onderka/php-parallel-lint": "^1.0",
"phpro/grumphp": "^0.14",
"sensiolabs/security-checker": "^4.1",
"nikic/php-parser": "^4.0",
"povils/phpmnd": "^2.0",
"squizlabs/php_codesniffer": "^3.4"
},
"autoload": {
"psr-4": {
"SykesCottages\\Qu\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/",
"Example\\": "examples/"
}
},
"suggest": {
"ext-sockets": "Remove socket warnings when using RabbitMQ"
},
"prefer-stable": true
}
Loading

0 comments on commit a1ea142

Please sign in to comment.