devorto / queue
Simple queue implementation. Load / Run queue commands (with custom storage support).
3.0.0
2025-10-16 11:23 UTC
Requires
- php: ^8.3.0
- symfony/console: ^7.3.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.