PHPackages                             galek/nette-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. galek/nette-calendar

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

galek/nette-calendar
====================

Extending DateTime for Nette framework.

v2.0.0(7y ago)32.5k1[1 issues](https://github.com/GalekDeprecated/netteCalendar/issues)GPL-3.0PHPPHP &gt;= 7.0

Since Apr 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/GalekDeprecated/netteCalendar)[ Packagist](https://packagist.org/packages/galek/nette-calendar)[ RSS](/packages/galek-nette-calendar/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (6)Versions (31)Used By (0)

nette Calendar
==============

[](#nette-calendar)

[![Travis](https://camo.githubusercontent.com/2a872cf1637d0f399a4e6ae132388cec657cb621b04c91abded604d085eede05/68747470733a2f2f7472617669732d63692e6f72672f4a616e47616c656b2f6e6574746543616c656e6461722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/JanGalek/netteCalendar)[![Total Downloads](https://camo.githubusercontent.com/f6954e497fd474b05704ac0912ebf5b254647b8849eceb2b804ba05b6950a012/68747470733a2f2f706f7365722e707567782e6f72672f67616c656b2f6e657474652d63616c656e6461722f646f776e6c6f616473)](https://packagist.org/packages/galek/nette-calendar)[![Latest Stable Version](https://camo.githubusercontent.com/ea956ecc9718af68f6c31db0781ede53896dd1d22fd8cecd92079008fca3e4a0/68747470733a2f2f706f7365722e707567782e6f72672f67616c656b2f6e657474652d63616c656e6461722f762f737461626c65)](https://packagist.org/packages/galek/nette-calendar)[![License](https://camo.githubusercontent.com/6afe6df28a0f8eabfb0ed105d6e730b590201cf927f5ffda33727e5bf14f5afc/68747470733a2f2f706f7365722e707567782e6f72672f67616c656b2f6e657474652d63616c656e6461722f6c6963656e7365)](https://packagist.org/packages/galek/nette-calendar)[![Monthly Downloads](https://camo.githubusercontent.com/d93aa011e7c67559da34bc39b386f8db718539826c08ff7873fc03648a0a9e5a/68747470733a2f2f706f7365722e707567782e6f72672f67616c656b2f6e657474652d63616c656e6461722f642f6d6f6e74686c79)](https://packagist.org/packages/galek/nette-calendar)[![Coverage Status](https://camo.githubusercontent.com/37a43b6a7791da526fa6ca4584d36553737b3e3c0e7ba488fc10046fb0af8eba/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4a616e47616c656b2f6e6574746543616c656e6461722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/JanGalek/netteCalendar?branch=master)

Extend Nette\\Utils\\DateTime() for Nette framework

Package Installation
--------------------

[](#package-installation)

The best way to install Nette Calendar is using [Composer](http://getcomposer.org/):

```
$ composer require galek/nette-calendar
```

[Packagist - Versions](https://packagist.org/packages/galek/nette-calendar)

or manual edit composer.json in your project

```
"require": {
    "galek/nette-calendar": "^1.0"
}
```

Usage
-----

[](#usage)

```
    use \Galek\Utils\Calendar;

    $date = new Calendar();

    if($date->isWorkday()){
        echo "Today is workday :/";
    }

    if($date->isHoliday()){
        echo "Today is holiday :)";
    }

// Easter
    echo "Easter of this year is: ".$date->getEaster();
    echo "Easter of 2020 year is: ".$date->getEaster(2020);
    echo "Easter Monday of this year is: ".$date->getEasterMonday();
    echo "Easter Big Friday of this year is: ".$date->getBigFriday();

    echo "Today or next workday:".$date->getWorkday()->format('d.m.Y');
    echo "Next workday:".$date->getWorkday(true)->format('d.m.Y');

// Something for e-shops ;)
    $date->setShippingTime(14, 20);
    echo "Date for shipping to some Hour and minute:".$date->getShippingDate()->format('d.m.Y');

    /**
     * $date->setShippingTime(14, 20);
     * $date->getShippingDate()
     * Friday 9:30 < 14:20 = Monday
     * Friday 14:30 > 14:20 = Wednesday (Monday send)
     * etc...
     **/
```

Documentation
-------------

[](#documentation)

Learn more in the [documentation](https://github.com/JanGalek/netteCalendar/blob/master/docs/en/index.md) and [czech version of documentation](https://github.com/JanGalek/netteCalendar/blob/master/docs/cs/index.md).

Migration and changelog 1.x -&gt; 2.x [documentation](https://github.com/JanGalek/netteCalendar/blob/master/docs/en/migration-1.x-to-2.x.md) and [czech version of documentation](https://github.com/JanGalek/netteCalendar/blob/master/docs/cs/migration-1.x-to-2.x.md).

Future
------

[](#future)

This repository will be rewrite to  for smallest repositories and will use more interfaces ;)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity69

Established project with proven stability

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 ~30 days

Recently: every ~57 days

Total

28

Last Release

2891d ago

Major Versions

v1.x-dev → v2.0.02018-07-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/6171356cdb5543081a1fe848b40b005ee6acc6b07d532c90311d51490837d1ab?d=identicon)[GcoreCZ](/maintainers/GcoreCZ)

### Embed Badge

![Health badge](/badges/galek-nette-calendar/health.svg)

```
[![Health](https://phpackages.com/badges/galek-nette-calendar/health.svg)](https://phpackages.com/packages/galek-nette-calendar)
```

###  Alternatives

[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5275.7M110](/packages/symplify-monorepo-builder)[nette/component-model

⚛ Nette Component Model

28716.8M101](/packages/nette-component-model)[brandembassy/slim-nette-extension

19198.2k](/packages/brandembassy-slim-nette-extension)[contributte/translation

Symfony/Translation integration for Nette Framework.

771.8M49](/packages/contributte-translation)[bileto/cronner

Simple tool which helps with maintenance of cron tasks.

752.2k](/packages/bileto-cronner)

PHPackages © 2026

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