rogervila/laravel-schedule-loop

Run Laravel commands every N seconds (60 by default)

2.1.0 2020-11-27 11:29 UTC

This package is auto-updated.

Last update: 2024-12-04 18:07:37 UTC


README

Laravel Schedule Loop

Laravel Schedule Loop

Quality Gate Status Coverage StyleCI Latest Stable Version Total Downloads License

About

This package provides a schedule:loop command for Laravel that runs any command every N seconds (60 by default)

Installation

composer require rogervila/laravel-schedule-loop

Usage

By default, it will loop schedule:run every 60 seconds

php artisan schedule:loop

# Is the same as

php artisan schedule:loop 60 schedule:run

You may specify the loop sleep time with an integer

# Will run schedule:run every 120 seconds.
php artisan schedule:loop 120

# Will run inspire every 5 seconds.
php artisan schedule:loop 5 inspire

License

Laravel Schedule Loop is open-sourced software licensed under the MIT license.

Icons made by iconixar from www.flaticon.com