Skip to content

Manage your Laravel scheduled tasks in the database with artisan commands

License

Notifications You must be signed in to change notification settings

koomai/laravel-cli-scheduler

Repository files navigation

Laravel CLI Scheduler

Dynamically schedule your Laravel tasks using artisan commands.

Latest Version on Packagist GitHub Tests Action Status GitHub Psalm Action Status GitHub Code Style Action Status Total Downloads

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.

About

Manage your Laravel scheduled tasks in the database with artisan commands

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

Languages