-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Richard Hughes
committed
Jan 15, 2019
0 parents
commit a1ea142
Showing
31 changed files
with
5,006 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
coverage | ||
.idea | ||
vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
Oops, something went wrong.