qlimix/messagebus-scheduler-middleware

Schedule messages via the messagebus with this middleware

1.0.0 2019-06-23 10:48 UTC

This package is auto-updated.

Last update: 2024-10-23 22:33:12 UTC


README

Travis CI Coveralls Packagist MIT License

Schedule messages via the messagebus with this middleware.

Install

Using Composer:

$ composer require qlimix/messagebus-scheduler-middleware

usage

<?php

use Qlimix\MessageBus\MessageBus\Middleware\SchedulerMiddleware;

$scheduler = new FooBarScheduler();

$schedulerMiddleware = new SchedulerMiddleware($scheduler, new DateInterval('P1D'));

Testing

To run all unit tests locally with PHPUnit:

$ vendor/bin/phpunit

Quality

To ensure code quality run grumphp which will run all tools:

$ vendor/bin/grumphp run

Contributing

Please see CONTRIBUTING for details.