PHPackages                             jchr86/calendr - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jchr86/calendr

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jchr86/calendr
==============

Object Oriented calendar management

2.1.4(6y ago)26.5kMITPHPPHP ^5.5|^7.0

Since Feb 15Pushed 6y agoCompare

[ Source](https://github.com/jchr86/CalendR)[ Packagist](https://packagist.org/packages/jchr86/calendr)[ Docs](https://github.com/yohang/CalendR)[ RSS](/packages/jchr86-calendr/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (10)Versions (24)Used By (0)

CalendR
=======

[](#calendr)

[![Build Status](https://camo.githubusercontent.com/a1b460d2a0a3c3c65335adff75f3564634bc4e648ace943ad6761c26ea2f38a1/68747470733a2f2f7472617669732d63692e6f72672f796f68616e672f43616c656e64522e7376673f6272616e63683d312e31)](https://travis-ci.org/yohang/CalendR)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/71904d70a0ef7a155d3ec28da5fc240fdd6f206ff0b7d8ca9be7e564ba52aae9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f796f68616e672f43616c656e64522f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yohang/CalendR/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/01fc006371967c5311a7785dbf1b7d7b021883623e8c1da0cfa6d6e7fceb7ac1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f796f68616e672f43616c656e64522f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yohang/CalendR/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/b57bdb950315020ad802eca3d9e9430f6616b2087ee9092a575f8627e75ced48/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f61633035306263302d633362322d346438382d626536332d3035396130643936383135372f6d696e692e706e67)](https://insight.sensiolabs.com/projects/ac050bc0-c3b2-4d88-be63-059a0d968157)

CalendR is an Object Oriented Calendar management library on top of PHP5.3+ Date objects. You can use it to deal with all your needs about calendars and events.

Complete documentation
----------------------

[](#complete-documentation)

Complete documentation is available [here](http://yohang.github.com/CalendR).

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

[](#installation)

CalendR is hosted on [packagist](http://packagist.org), you can install it with composer.

Open a command console, enter your project directory and execute:

```
$ composer require jchr86/calendr
```

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

### Enable the Bundle.

[](#enable-the-bundle)

Enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    CalendR\Bridge\Symfony\Bundle\CalendRBundle::class => ['all' => true],
];
```

### Register an event provider.

[](#register-an-event-provider)

```
// src/Repository/EventRepository.php

namespace App\Repository;

use App\Entity\Event;
use CalendR\Bridge\Doctrine\ORM\EventRepository;
use CalendR\Event\Provider\ProviderInterface;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Common\Persistence\ManagerRegistry;
use Doctrine\ORM\Query\Expr;

class EventRepository extends ServiceEntityRepository implements ProviderInterface
{
    use EventRepository;

    public function __construct(ManagerRegistry $registry)
    {
        parent::__construct($registry, Event::class);
    }
}
```

```
// config/services.yaml

services:
    App\Repository\EventRepository:
        tags:
            - { name: calendr.event_provider }
```

Contribute
----------

[](#contribute)

Calendar is open to contributions. Merging delays can vary depending to my free time, but always be welcome.

License
-------

[](#license)

CalendR is licensed under the MIT License - see the LICENSE file for details

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 83.2% 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 ~148 days

Recently: every ~181 days

Total

21

Last Release

2293d ago

Major Versions

1.1.x-dev → 2.0.02016-04-17

PHP version history (2 changes)1.0.0-betaPHP &gt;=5.3.0

2.0.0PHP ^5.5|^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/506964?v=4)[Juan Carlos Hdez](/maintainers/jchr86)[@jchr86](https://github.com/jchr86)

---

Top Contributors

[![yohang](https://avatars.githubusercontent.com/u/608984?v=4)](https://github.com/yohang "yohang (183 commits)")[![zanbaldwin](https://avatars.githubusercontent.com/u/123245?v=4)](https://github.com/zanbaldwin "zanbaldwin (22 commits)")[![ovgray](https://avatars.githubusercontent.com/u/2389376?v=4)](https://github.com/ovgray "ovgray (4 commits)")[![bertrandq](https://avatars.githubusercontent.com/u/4091631?v=4)](https://github.com/bertrandq "bertrandq (3 commits)")[![garak](https://avatars.githubusercontent.com/u/179866?v=4)](https://github.com/garak "garak (3 commits)")[![jchr86](https://avatars.githubusercontent.com/u/506964?v=4)](https://github.com/jchr86 "jchr86 (2 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (1 commits)")[![samnela](https://avatars.githubusercontent.com/u/1852108?v=4)](https://github.com/samnela "samnela (1 commits)")[![jpottier](https://avatars.githubusercontent.com/u/1446926?v=4)](https://github.com/jpottier "jpottier (1 commits)")

---

Tags

eventsdatecalendar

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jchr86-calendr/health.svg)

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

###  Alternatives

[symfony/rate-limiter

Provides a Token Bucket implementation to rate limit input and output in your application

27054.3M284](/packages/symfony-rate-limiter)[yohang/calendr

Object Oriented calendar management

474621.5k3](/packages/yohang-calendr)[league/period

Time range API for PHP

7335.8M24](/packages/league-period)[aeon-php/calendar

PHP type safe, immutable calendar library

20810.4M16](/packages/aeon-php-calendar)[umulmrum/holiday

A PHP library to compute holidays. It's something :-)

93385.8k1](/packages/umulmrum-holiday)[symfony/ux-cropperjs

Cropper.js integration for Symfony

19346.6k3](/packages/symfony-ux-cropperjs)

PHPackages © 2026

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