carlossosa88/cron-expression
Fork of dragonmantank/cron-expression adding nonstandard seconds support for Fcron-style scheduling. Parse cron strings and macros, check if a schedule is due, and compute next/previous run dates with optional second-level precision control.
Artisan::schedule()) by providing granular control over cron expressions (e.g., second-level precision for high-frequency tasks).@every syntax.node-cron, APScheduler).For Executives: "This lightweight PHP package lets us schedule tasks with the precision of Unix cron—down to the second—without building or maintaining custom parsing logic. It’s already used by Laravel, so it’s production-ready. For example, we could automate high-frequency data syncs for our IoT customers or let tenants configure their own job schedules in the dashboard. It’s a low-risk, high-reward way to add reliability and flexibility to our backend."
For Engineering: *"This is a drop-in replacement for ad-hoc cron parsing in our codebase. Key benefits:
*/5 for every 5 seconds).60 in minutes).Artisan::schedule() or standalone.strtotime-based scheduler with this for predictable, maintainable cron logic. The changelog shows active maintenance, and it’s MIT-licensed."*For Developers: *"Need to schedule a job every 3 seconds? Or parse a cron string from a user input? This library handles it all. Example:
$cron = CronExpression::factory('*/5 * * * * *'); // Every 5 seconds
if ($cron->isDue()) {
// Run task
}
It’s also used in Laravel’s scheduler, so it’s battle-tested. Just composer require and go."*
How can I help you explore Laravel packages today?