PHPackages                             popy/republican-calendar - 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. popy/republican-calendar

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

popy/republican-calendar
========================

Republican calendar library

0.1.0-beta(8y ago)081MITPHP

Since Mar 4Pushed 6y ago1 watchersCompare

[ Source](https://github.com/popy-dev/popy-republican-calendar)[ Packagist](https://packagist.org/packages/popy/republican-calendar)[ RSS](/packages/popy-republican-calendar/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

French Republican Calendar
==========================

[](#french-republican-calendar)

This is a popy/calendar implementation of the[French Republican/Revolutionary calendar.](https://en.wikipedia.org/wiki/French_Republican_Calendar), which is a 12 monthes of 30 days calendar, with 5 (or 6 on leap years) additional days which has been inspired from the Egyptian calendar.

Date convertors are no longer inspired from [caarmen's work](https://github.com/caarmen/french-revolutionary-calendar)but her work helped me a lot to wrap my head around all the difficulties of date conversion.

The dates conversion handles timezones and DST, which are keeped as regular hour jumps, at the same dates/hours than with regular dates, which gives constistency in a day.

[![Build Status](https://camo.githubusercontent.com/4d66c574afb91b79cba50774016a06a354c6c78c31c69f8efbc4f522f60cad90/68747470733a2f2f6170692e7472617669732d63692e6f72672f706f70792d6465762f706f70792d72657075626c6963616e2d63616c656e6461722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/popy-dev/popy-republican-calendar)

Other calendars
---------------

[](#other-calendars)

As said earlier, the revolutionary calendar is based on the egyptian one, so the `CalendarFactory` have a dedicated `buildEgyptian` method that initializes an Egyptian calendar, just using configuration (but this is achievable with only the popy/calendar package). Some egyptian calendar variations may be added aswell :

- Coptic
- Ethiopian

Purpose
-------

[](#purpose)

It serves as an example/proof of concept, and as a sandbox. Code is tested there and eventually, if it works and is This is an example implementation of popy/calendar interfaces, aswell as a sandbox (who said litter) and improvement lab. Most of popy/calendar tools and interfaces originate from this repository.

Usage
-----

[](#usage)

The easiest way to get a proper republican calendar is to use the configurable factory.

Usage is basically the same as any popy/php-calendar implementation, with few additions :

- `X` will output the day individual name
- `|` seperates 2 alternatives, the first is used for regular date, the second alternative, if present, is used for the complementary day.

```
