https://github.com/ElliottLandsborough/php-terminal-app
composer install
./bin/app
composer install
./vendor/bin/phpunit
docker-compose up
I know this is a small app but I still prefer the symfony component in case we want to expand later. It works with all @ nicknames other than '@restart'. Equivalents were taken from the crontab manpage.
./path-to-app * * * * * /usr/bin/php --version
./bin/app parseCron "* * * * * /usr/bin/php --version"
./bin/app parseCron "*/10 1,2,3 5-11 1 6 /usr/bin/php --version"
+--------------+------------------------+
| Minute | 0 10 20 30 40 50 |
| Hour | 1 2 3 |
| Day of month | 5 6 7 8 9 10 11 |
| Month | 1 |
| Day of week | 6 |
| Command | /usr/bin/php --version |
+--------------+------------------------+