timur-flush / queue
Queue.
v1.0.2
2018-08-08 08:19 UTC
Requires
- php: ^7.2.0
- ext-phalcon: ^3.4.0
- pda/pheanstalk: ^3.1.0
Requires (Dev)
- mockery/mockery: ^1.0.0
- phpunit/phpunit: ^7.2.0
- satooshi/php-coveralls: *
- squizlabs/php_codesniffer: ^3.0.0
This package is auto-updated.
Last update: 2024-10-15 01:47:46 UTC
README
Queue
Component provides a unified API across a variety of different queue services. Queues allow you to defer the processing of a time consuming task, such as sending an e-mail, until a later time, thus drastically speeding up the web requests to your application.
Using
Note that the EventsManager service must be registered in the dependency container and must return the \Phalcon\Events\Manager interface instance
In Dependency Injector:
use TimurFlush\Queue\Adapter\Beanstalk as BeanstalkQueue;
$di->setShared('queue', function() {
/* By default, Beanstalk uses IP 127.0.0.1 and Port 11300,
* but you can easily override them by passing new values
* to the constructor.
*/
return new BeanstalkQueue(
[
'host' => '127.0.0.1',
'port' => '11300',
//'persistent' => true, //if necessary
]
);
});
Author
Timur Flush
Requirements
PHP ^7.2.0
Phalcon ^3.4.0
Version
1.0.0 Beta 1
License
BSD-3-License