koomai/laravel-cli-scheduler

Dynamically schedule your Laravel tasks using artisan commands.

v3.0.1 2023-09-13 06:19 UTC

This package is auto-updated.

Last update: 2024-04-13 07:36:28 UTC


README

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.