Download the PHP package clivern/chunk without Composer
On this page you can find all versions of the php package clivern/chunk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download clivern/chunk
More information about clivern/chunk
Files in clivern/chunk
Package chunk
Short Description Asynchronous Task Queue Based on Distributed Message Passing for PHP.
License MIT
Homepage https://github.com/clivern/chunk
Informations about the package chunk
Chunk
Asynchronous Task Queue Based on Distributed Message Passing for PHP
Documentation
Installation:
To install the package via composer
, use the following:
This command requires you to have composer
installed globally.
Basic Usage:
First create event handlers. Chunk supports these events
EventInterface::ON_MESSAGE_RECEIVED_EVENT
EventInterface::ON_MESSAGE_FAILED_EVENT
EventInterface::ON_MESSAGE_HANDLED_EVENT
EventInterface::ON_MESSAGE_SENT_EVENT
EventInterface::ON_MESSAGE_SEND_FAILURE_EVENT
Then create async message handlers, Each handler has a unique key so chunk can map the message to the appropriate handler.
In the following code, we create a handler to process any message with type serviceA.processOrder
.
Then create an instance of the message broker.
Now you can run listener daemon
And start sending a message from a different process
For a complete working examples, please check this folder.
Versioning
For transparency into our release cycle and in striving to maintain backward compatibility, Chunk is maintained under the Semantic Versioning guidelines and release process is predictable and business-friendly.
See the Releases section of our GitHub project for changelogs for each release version of Chunk. It contains summaries of the most noteworthy changes made in each release.
Bug tracker
If you have any suggestions, bug reports, or annoyances please report them to our issue tracker at https://github.com/clivern/chunk/issues
Security Issues
If you discover a security vulnerability within Chunk, please send an email to [email protected]
Contributing
We are an open source, community-driven project so please feel free to join us. see the contributing guidelines for more details.
License
© 2020, clivern. Released under MIT License.
Chunk is authored and maintained by @clivern.