-
-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Greg Bowler edited this page Mar 9, 2025
·
2 revisions
Cron is a time-based job scheduler commonly found in Unix-like operating systems. It allows users to automate repetitive tasks by defining execution times in a crontab (a configuration file containing scheduling rules). These tasks can range from running maintenance scripts and data backups to sending periodic notifications.
The cron package brings this scheduling capability to PHP applications, enabling precise execution of scheduled tasks without relying on external system cron jobs.
00 * * * * ExampleClass::hourlyTask()
0 22 * * 1-5 YourApp\Accounts\Daily::nightRoutine("you can pass properties too!")
# This is a comment. The above job will run at 10pm Mon-Fri.
*/10 * * * * ExampleClass::runEveryTenMinutes