koomai / laravel-cli-scheduler
Dynamically schedule your Laravel tasks using artisan commands.
Fund package maintenance!
koomai
Requires
- php: ^8.1
- dragonmantank/cron-expression: ^3.3
- illuminate/console: ^8.0 || ^9.0 || ^10.0
- illuminate/contracts: ^8.0 || ^9.0 || ^10.0
- illuminate/database: ^8.0 || ^9.0 || ^10.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.26
- nunomaduro/collision: ^5.0 || ^6.0 || ^7.0
- orchestra/testbench: ^8.10
- phpunit/phpunit: ^9.5 || ^10.1
- psalm/plugin-laravel: ^2.8
- vimeo/psalm: ^5.15
README
Dynamically schedule your Laravel tasks using artisan commands.
Laravel Scheduler allows you to add, view and remove scheduled tasks in a database via artisan commands. This is particularly useful when you want to schedule tasks without having to redeploy code.
Installation
Install the package via composer:
composer require koomai/laravel-cli-scheduler
You will need to publish the config file to customise the table name and/or setup default values for some options.
php artisan vendor:publish -tag="cli-scheduler-config"
Usage
Add Scheduled Task
php artisan schedule:add
List scheduled tasks (in the database)
php artisan schedule:list-tasks
Show/Delete a scheduled task (in database)
php artisan schedule:show <id>
php artisan schedule:delete <id>
Show due scheduled tasks (from both database and Console\Kernel
)
php artisan schedule:due
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.