devorto / queue
Simple queue implementation. Load / Run queue commands (with custom storage support).
2.0.4
2020-12-29 09:23 UTC
Requires
- php: ^7.1.0
- psr/log: ^1.1.0
- symfony/console: ^4.4.0||^5.0.0
Suggests
- devorto/dependency-injection: For loading of symfony console command dependencies.
README
Usage:
- Add a class implementing the storage interface. This class will be used to get/add items from/to the queue. For example in this class you can use a database driver (mysql or alike) to store the commands.
- Create the symfony console command class(es).
- Run the symfony console commands by using a queue implementation. For example src/Commands/Run.php. But also if you like to create your own implementation this code is a good starting point.