devorto / queue
Simple queue implementation. Load / Run queue commands (with custom storage support).
Installs: 138
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/devorto/queue
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.