doganoo / backgrounder
Simple and Light Weight Background Job Library
Requires
- php: >7.4
- ext-pcntl: *
- doganoo/php-algorithms: ^2.0
- psr/container: ^1.0
- psr/log: ^1.1
Requires (Dev)
- ergebnis/composer-normalize: ^2.8
- filp/whoops: ^2.7
- phpcompatibility/php-compatibility: ^9.3
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^9.0
- roave/security-advisories: dev-latest
- squizlabs/php_codesniffer: ^3.5
- symfony/var-dumper: ^5.2
README
Backgrounder is a simple and intuitive library for handling background jobs. Backgrounder provides two types of background jobs:
1 One Time Jobs: jobs that are designed to run only one time (such as a file migration from one directory to another) 2 Regular (recurrent) Jobs: jobs that are designed to run after a defined amount of time
Installation
You can install the package via composer:
composer require doganoo/backgrounder
Usage
The main class for running background jobs is doganoo\Backgrounder\Backgrounder. In order to run Backgrounder, you need to pass a list of jobs that should be executed, the DI Container which is used to query the jobs and a Logger to get any log messages.
Contributions
Feel free to send a pull request to add more functionalities.
Maintainer/Creator
Doğan Uçar (@doganoo)
License
MIT