2017 © Pedro Peláez
 

library nette-calendar

Extending DateTime for Nette framework.

image

galek/nette-calendar

Extending DateTime for Nette framework.

  • Monday, July 9, 2018
  • by GcoreCZ
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2,429 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 4 Open issues
  • 30 Versions
  • 0 % Grown

The README.md

nette Calendar

Travis Total Downloads Latest Stable Version License Monthly Downloads Coverage Status, (*1)

Extend Nette\Utils\DateTime() for Nette framework, (*2)

Package Installation

The best way to install Nette Calendar is using Composer:, (*3)

$ composer require galek/nette-calendar

Packagist - Versions, (*4)

or manual edit composer.json in your project, (*5)

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

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

Learn more in the documentation and czech version of documentation., (*6)

Migration and changelog 1.x -> 2.x documentation and czech version of documentation., (*7)

Future

This repository will be rewrite to https://github.com/DateTi for smallest repositories and will use more interfaces ;), (*8)

The Versions

09/07 2018

v2.x-dev

2.9999999.9999999.9999999-dev

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

09/07 2018

dev-master

9999999-dev

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

08/03 2018

v1.x-dev

1.9999999.9999999.9999999-dev

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

14/12 2017

v1.4.1

1.4.1.0

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

14/12 2017

v1.4.0

1.4.0.0

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

25/09 2017

v1.3.2

1.3.2.0

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

25/09 2017

v1.3.1

1.3.1.0

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

25/09 2017

dev-nette-3.0

dev-nette-3.0

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

25/09 2017

dev-nette-2.4

dev-nette-2.4

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

25/09 2017

v1.2.1

1.2.1.0

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

25/09 2017

v1.2.0

1.2.0.0

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

25/04 2017

v1.1.2

1.1.2.0

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

25/04 2017

v1.1.1

1.1.1.0

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

25/04 2017

v1.1.0

1.1.0.0

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

25/04 2017

v1.0.6

1.0.6.0

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

25/04 2017

v1.0.5

1.0.5.0

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

24/04 2017

v1.0.4

1.0.4.0

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

24/04 2017

v1.0.3

1.0.3.0

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

13/07 2016

v1.0.2

1.0.2.0

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

15/06 2016

v1.0.1.0

1.0.1.0

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

31/05 2016

v1.0.0.9

1.0.0.9

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

31/05 2016

v1.0.0.7

1.0.0.7

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

31/05 2016

v1.0.0.8

1.0.0.8

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

02/05 2016

v1.0.0.6

1.0.0.6

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

30/04 2016

v1.0.0.5

1.0.0.5

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

30/04 2016

v1.0.0.4

1.0.0.4

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

30/04 2016

v1.0.0.3

1.0.0.3

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

30/04 2016

v1.0.0.2

1.0.0.2

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

30/04 2016

v1.0.0.1

1.0.0.1

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

29/04 2016

v1.0.0

1.0.0.0

Extending DateTime for Nette framework.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires