Download the PHP package jeremyrwross/frequency-scheduler without Composer
On this page you can find all versions of the php package jeremyrwross/frequency-scheduler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package frequency-scheduler
Frequency Scheduler
Frequency Scheduler is a Laravel package that allows you to schedule tasks based on a frequency percentage within a specified time period.
Compatibility
This version supports Laravel 12 and 13, with PHP 8.3 or later within PHP 8. Laravel 12 applications running PHP 8.2 must upgrade PHP to use this package.
Composer enforces the supported Laravel majors through the required Illuminate
components (^12.0 || ^13.0). Future Laravel majors are added after compatibility
testing, rather than accepted automatically.
The GitHub Actions workflow runs the test suite against the latest compatible dependencies for Laravel 12 and 13 on PHP 8.3, 8.4, and 8.5. Support targets Laravel versions still receiving security fixes under Laravel's support policy. Dropping a supported Laravel major is a breaking package change and belongs in a new major package release; existing releases keep their declared constraints.
Installation
You can install the package via composer:
Usage
Each scheduled opportunity gets an independent chance to run. Set the interval explicitly; Laravel otherwise checks the task every minute.
The command names above are examples; use your application's command.
- Percentages describe the chance at each opportunity, not an exact quota of runs per period. Runs may be consecutive, and long gaps are possible. Other scheduler constraints and unavailable work can reduce actual posts.
- Use separate schedule entries for different periods. Chaining
frequencyByPeriod()calls requires all periods to pass, so disjoint periods on the same entry will never run. - Times use the 24-hour
H:iformat (00:00through23:59). Both endpoint minutes are included. Avoid overlapping windows: two separate entries can both run in an overlapping minute, even withwithoutOverlapping()if the first command finishes before the second starts. - An end time earlier than the start wraps across midnight. Equal endpoints
mean a single minute; use
00:00to23:59for the full day. - The task's timezone is used, falling back to PHP's default timezone (normally Laravel's application timezone). Daylight-saving clock changes can skip or repeat local opportunities.
0never runs;100always passes this filter inside the period.withoutOverlapping()prevents concurrent executions; it does not enforce a minimum gap between completed posts. This package does not persist posting history or retry missed opportunities.
For a custom condition, the helper is also available directly:
Import Jeremyrwross\FrequencyScheduler\FrequencyScheduler when using the helper.
Development
To check a specific supported Laravel major locally:
The package version is derived from Git release tags.
Upgrading from 1.x
Version 2.0 requires Laravel 12 or 13 and PHP 8.3 or later within PHP 8.
Update your Composer constraint to ^2.0. The three-argument scheduling macro
remains compatible, including overnight windows and inclusive endpoint minutes.
Period checks now run when Laravel evaluates the event and respect the event's
timezone. Invalid clock times such as 25:00 are rejected. Review any explicit
event timezones, since version 1 ignored them for the period check.
All versions of frequency-scheduler with dependencies
illuminate/console Version ^12.0 || ^13.0
illuminate/support Version ^12.0 || ^13.0
nesbot/carbon Version ^3.8.4