alexbowers/laravel-fake-cron

38,139 55
Install
composer require alexbowers/laravel-fake-cron
Latest Version:v1.2.0
PHP:^7.1
License:MIT
Last Updated:Sep 30, 2020
Links: GitHub  ·  Packagist
Maintainer: alexbowers

Laravel Fake Cron


php artisan cron is a daemon command that runs the schedule:run command.

Use this package instead of adding php artisan schedule:run to your crontab file.

Run this command under supervisor so that it will automatically restart should any crash occur.

Options:

You can use the --interval flag to set the interval between schedule:run calls.

By default, this is every 60 seconds, however it can be changed to any interger second value.

php artisan cron --interval=15 would run the scheduled commands every 15 seconds.

This is helpful if you want a finer granuality than a typical cron gives you.

By default this command outputs a progress bar showing how long until the next trigger, if you do not want this (eg, in production), use the --quiet flag.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

641,106,524 9,700
laravel/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

502,645,077 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

418,291,778 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

394,964,158 4,660

Version History

Version Released PHP Laravel License
v1.2.0 ^7.1 ^5.8 | ^6.0 | ^7.0 | ^8.0 MIT
v1.1.0 ^7.1 ^5.8 | ^6.0 MIT
v1.0.0 ^7.1 ^5.8 MIT