Download the PHP package dosomething/messagebroker-phplib without Composer
On this page you can find all versions of the php package dosomething/messagebroker-phplib. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dosomething/messagebroker-phplib
More information about dosomething/messagebroker-phplib
Files in dosomething/messagebroker-phplib
Package messagebroker-phplib
Short Description A library of functionality shared between the components that make up the DoSomething.org Message Broker system.
License MIT
Homepage https://github.com/DoSomething/messagebroker-phplib
Informations about the package messagebroker-phplib
messagebroker-phplib
A PHP baed library that ascts as a wrapper around the php-amqplib/php-amqplib
AMQP PHP library.
The goal is to provide utility methods to simplify some of the more common activities of
interacting with a AMQP based (RabbitMQ) server.
Usage
Within the composer.json
file of any PHP based application include this package with:
Create an instance of the class
Publish a message
Consume a message
How a message will be consumed is defined in the connection to the queue.
The number of messages for the consumer to reserve with each callback. This is Necessary for parallel processing when more than one consumer is running on the same queue.
where the consumed message details will be sent to consumer method>
Gulp Support
Use a path directly to gulp ./node_modules/.bin/gulp
or add an alias to your system config (.bash_profile
) as alias gulp='./node_modules/.bin/gulp'
Linting
gulp lint
See gulpfile.js
for configuration and combinations of tasks.
PHP CodeSniffer
-
php ./vendor/bin/phpcs --standard=./ruleset.xml --colors -s MessageBroker-Drupal.php src tests
Listing of all coding volations by file. php ./vendor/bin/phpcbf --standard=./ruleset.xml --colors MessageBroker-Drupal.php src tests
Automated processing of files to adjust to meeting coding standards.
Test Coverage
gulp test
or
npm test
PHP Unit
$ ./vendor/bin/phpunit --verbose tests