wildphp / queue
Simple queue implementation, primarily used for WildPHP
Installs: 1 254
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 2
pkg:composer/wildphp/queue
Requires
- php: >=7.1.0
- react/event-loop: ^1
- react/promise: ^2
Requires (Dev)
- clue/block-react: ^1
- phpunit/phpunit: ^7
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2023-09-01 20:07:56 UTC
README
This library defines a simple (message) queue interface. It sends out messages in the order they came in, but at a limited rate.
Currently implemented features are:
- Basic queue functionality
- Callback queue items
- Burst mode (send a batch of messages before throttling)
The default values are to send 1 message per second with a burst rate of 5 messages. This suits IRC well.
Installation
To install this library, you will need Composer.
$ composer require wildphp/queue ^0.1
Getting started
This library comes with a set of ready-to-use QueueItems, but you might want to develop your own. More on that later.
The most important classes in the library are the QueueProcessor and BaseQueue.
More documentation is TBD.
Contributors
You can see the full list of contributors in the GitHub repository.