PHPackages                             kronos/rrule - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. kronos/rrule

AbandonedArchivedLibrary[Parsing &amp; Serialization](/categories/parsing)

kronos/rrule
============

A simple object oriented rrule parser

v3.2.0(2y ago)0159.3k[1 issues](https://github.com/kronostechnologies/rrule/issues)MITPHPPHP ^8.1

Since Jan 20Pushed 2y ago18 watchersCompare

[ Source](https://github.com/kronostechnologies/rrule)[ Packagist](https://packagist.org/packages/kronos/rrule)[ Docs](https://github.com/kronostechnologies/rrule)[ RSS](/packages/kronos-rrule/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (6)Versions (14)Used By (0)

Kronos\\RRule
=============

[](#kronosrrule)

Object oriented class to parse rrule and exdate.

Installation
------------

[](#installation)

```
composer require kronos\rrule

```

Test
----

[](#test)

```
composer install
./vendor/phpunit/phpunit/phpunit

```

RRule Usage
-----------

[](#rrule-usage)

### Generate Raw RRule

[](#generate-raw-rrule)

```
$rrule = new \Kronos\RRule();
$rrule->setByDay(array(\Kronos\RRule\Enums\Days::FRIDAY));
$rrule->setByHour(array('1'));
$rrule->setByMinute(array('1'));
$rrule->setByMonth(array('1'));
$rrule->setByMonthDay(array('1'));
$rrule->setBySecond(array('1'));
$rrule->setBySetPos(array('1'));
$rrule->setByWeekNo(array('1'));
$rrule->setByYearDay(array('1'));
$rrule->setCount(1);
$rrule->setFrequency(\Kronos\RRule\Enums\Frequencies::DAILY);
$rrule->setInterval(1);
$rrule->setUntil(new \DateTime('1980-08-08'));
$rrule->setWkst(\Kronos\RRule\Enums\Days::MONDAY);

echo $rrule->generateRawRRule();

```

### Parse Raw RRule

[](#parse-raw-rrule)

```
$raw_rrule = 'RRULE:BYMONTHDAY=20,21';
$rrule = \Kronos\RRule::fromRawRRule($raw_rrule);

```

ExDate Usage
------------

[](#exdate-usage)

### Generate Raw ExDate

[](#generate-raw-exdate)

```
$timezone = new \DateTimeZone('UTC');
$exdate->setExceptionDates([
	new \DateTime('2000-01-01 00:00:00', $timezone),
	new \DateTime('2000-02-01 01:00:00', $timezone),
]);

echo $exdate->generateRawExDate();

```

### Parse Raw ExDate

[](#parse-raw-exdate)

```
$exdate = \Kronos\Exdate::fromRawExDate('EXDATE:20000101T000000Z,20000201T000000Z');

```

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 83.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~275 days

Recently: every ~228 days

Total

10

Last Release

918d ago

Major Versions

1.0.0 → 2.0.02017-02-02

v2.1.0 → v3.0.02021-05-03

PHP version history (3 changes)1.0.0PHP &gt;=5.3.0

v3.1.0PHP ^7.4 || ^8.1

v3.1.2PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/c21f8d2f74fa213c055b9ace0b8320f44bd1e9df47996e977fe9c0699db23df2?d=identicon)[nvanheuverzwijn](/maintainers/nvanheuverzwijn)

![](https://www.gravatar.com/avatar/70e2f4ac35b1164e0b25f0121521a4f0c2dccbbe380899ca2a35341e84008067?d=identicon)[jbreton](/maintainers/jbreton)

---

Top Contributors

[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (82 commits)")[![etremblay](https://avatars.githubusercontent.com/u/617714?v=4)](https://github.com/etremblay "etremblay (4 commits)")[![alexbrillant](https://avatars.githubusercontent.com/u/19400226?v=4)](https://github.com/alexbrillant "alexbrillant (4 commits)")[![meriouma](https://avatars.githubusercontent.com/u/1082552?v=4)](https://github.com/meriouma "meriouma (4 commits)")[![nvanheuverzwijn](https://avatars.githubusercontent.com/u/943226?v=4)](https://github.com/nvanheuverzwijn "nvanheuverzwijn (2 commits)")[![antoinedeschenes](https://avatars.githubusercontent.com/u/6216119?v=4)](https://github.com/antoinedeschenes "antoinedeschenes (1 commits)")[![Chris-V](https://avatars.githubusercontent.com/u/1116964?v=4)](https://github.com/Chris-V "Chris-V (1 commits)")

---

Tags

rrulerfc2445

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kronos-rrule/health.svg)

```
[![Health](https://phpackages.com/badges/kronos-rrule/health.svg)](https://phpackages.com/packages/kronos-rrule)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M283](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M226](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M63](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M343](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
