xuqingfeng/holiday

[ holidays stuff ]

v0.1.1 2015-02-25 08:39 UTC

This package is not auto-updated.

Last update: 2024-12-21 18:19:36 UTC


README

travis

Motivation

ugly hard coded holiday date in our site.

Install

via composer

{
    "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 ? 👉 doc

Test

phpunit .

Thanks

enrico (api)

License

MIT