Download the PHP package jbc/php-cron without Composer
On this page you can find all versions of the php package jbc/php-cron. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package php-cron
php-cron
Native PHP cron scheduler — no crontab required.
A pure PHP task scheduler that does not depend on the system crontab. Perfect for PHP applications that need to run periodic tasks without additional server configuration.
Requirements
- PHP 8.1+
pcntlextension
Installation
Basic usage
Supported expressions
| Expression | Description |
|---|---|
* * * * * |
Every minute |
*/5 * * * * |
Every 5 minutes |
0 9 * * * |
Every day at 9am |
0 9 * * 1-5 |
Weekdays at 9am |
0 0 1 * * |
First day of every month |
@hourly |
Every hour |
@daily |
Every day at midnight |
@weekly |
Every week |
@monthly |
Every month |
Job options
| Method | Description |
|---|---|
->name('name') |
Sets a unique name for the job |
->withoutOverlapping() |
Prevents simultaneous execution of the same job |
->onlyIf(callable) |
Only runs if the condition returns true |
->onError(callable) |
Catches errors without stopping the scheduler |
Running
Production with Supervisor
License
MIT © João Bonifacio
All versions of php-cron with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
symfony/console Version ^7.0
symfony/lock Version ^7.0
symfony/process Version ^7.0
symfony/event-dispatcher Version ^7.0
psr/log Version ^3.0
symfony/console Version ^7.0
symfony/lock Version ^7.0
symfony/process Version ^7.0
symfony/event-dispatcher Version ^7.0
psr/log Version ^3.0
The package jbc/php-cron contains the following files
Loading the files please wait ...