Registry / utility / simshaun-recurr

simshaun-recurr

JSON →
library6.0.0phppackagistunverified

PHP library for working with recurrence rules (RRULE).

composer require simshaun/recurr
INSTALL
IMPORT
SIG · SIMSHAUN-RECURR
S
simshaun-recurr
utilityphpv6.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Rule
use Recurr\Rule;

Generate recurring dates from an RRULE string.

use Recurr\Rule; use Recurr\Transformer\ArrayTransformer; $rule = new Rule('FREQ=DAILY;INTERVAL=2', new \DateTime('2023-01-01')); $transformer = new ArrayTransformer(); $dates = $transformer->transform($rule); foreach ($dates as $date) { echo $date->format('Y-m-d') . PHP_EOL; }
Debug
Known issues
breakingVersion 6.0.0 introduced breaking changes in the transformer API.
fix
Update code to use new transformer classes (e.g., ArrayTransformer).
affects: >=6.0.0
Upgrade
Version history
6.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
simshaun-recurr — pip install simshaun-recurr · libregistry