2017 © Pedro Peláez
 

library holiday

[ holidays stuff ]

image

xuqingfeng/holiday

[ holidays stuff ]

  • Thursday, February 1, 2018
  • by xuqingfeng
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

holiday

travis, (*1)

Motivation

ugly hard coded holiday date in our site., (*2)

Install

via composer, (*3)

{
    "require": {
        "xuqingfeng/holiday": "0.1.*"
    }
}

How

    /**
     * @param array $params
     * @return mixed
     *
     * month-required
     * year-required
     * country-required
     * region-optional
     */
    public function getPublicHolidays4Month(array $params)

    /**
     * @param array $params
     * @return mixed
     *
     * year-required
     * country-required
     */
    public function getPublicHolidays4Year(array $params)

    /**
     * @param array $params
     * @return mixed
     *
     * fromDate-required
     * toDate-required
     * country-required
     * region-optional
     */
    public function getPublicHolidays4DateRange(array $params)

    /**
     * @param array $params
     * @return mixed
     *
     * date-required
     * country-required
     */
    public function isPublicHoliday(array $params)

    /**
     * @return mixed
     */
    public function getSupportedCountries()

Want to dig deep ? :point_right: doc, (*4)

Test

phpunit ., (*5)

Thanks

enrico (api), (*6)

License

MIT, (*7)

The Versions

01/02 2018

dev-master

9999999-dev

[ holidays stuff ]

  Sources   Download

MIT GPLv3

The Requires

  • php >=5.3.3

 

by Avatar xuqingfeng

25/02 2015

v0.1.1

0.1.1.0

[ holidays stuff ]

  Sources   Download

GPLv3

The Requires

  • php >=5.3.3

 

by Avatar xuqingfeng