Commit graph

13 commits

Author SHA1 Message Date
f8e945bacd chore: drop EOL PHP versions
Seemed overdue to finally drop support for PHP 5.x, as well as 7.x as
the 7 series has also reached end of life.

Expanded testing to include both the soon to be released 8.3 and the
next development version 8.4.
2023-11-06 12:43:17 -06:00
15052790c5 feat: get previous workday
Added the ability to get the previous workday by passing in a negative
number of days along with the date to start from.

This update also includes some overhauling to allow for the library to
be more resilient to changes in the upstream API.
2022-04-05 18:02:30 -05:00
95bba75265 feat: add workdays endpoint
Added support for our new workdays endpoint that allows you to get the
number of working days for a country between two dates.
2021-06-14 18:01:47 -05:00
peter279k
b398ba5013 Add PHP8.0 and JSON & cURL extension checking 2020-12-29 16:26:42 -06:00
peter279k
b15f862193 Using PHPUnit ^4.8.36 and some PHPUnit stuffs 2020-12-22 16:17:12 -06:00
45ca80d846 feat: add workday endpoint
Added support for our latest endpoint, which calculates the workday a
given number of business days into the future from the given date for
the given country.
2020-06-19 18:56:47 -05:00
b6fad34f19 build: swap travis for github actions 2020-06-13 10:19:15 -05:00
b9ceb5947c docs: improve syntax highlighting of code snippets
* Seems PHP snippets require the delimiter to function properly.
* Updated a bunch of dependencies.
2020-06-13 10:19:15 -05:00
12f1ea69f8 feat: filter out countries without public holidays
Fairly minor update, no code change, just added a new test to cover the
flag that was recently added to the API and expanded the documentation
to also include it.
2020-03-03 22:08:57 -06:00
054eab9c02 feat: pull country or language by code
* feat: pull country or language by code.

This differs from the existing `search` functionality in that it allows
you to explicitly pull back a single country or language instead of
anything that matches (which could result in more items returned than
expected).

* docs(readme): update to include examples for new functionality.
* test: expand tests to include new parameters.
* fix(client): dropped some commented out code that wasn't in use.
* docs(license): bump the year of the license.
2020-02-11 18:14:18 -06:00
0f45ca781a chore(ci): include 7.4 and nightly
* chore(ci): Added 7.4 (just released) and nightly (as an allowed failure).
* chore(composer): Swap out abandoned coveralls package for maintained version.
* chore(composer): Added PHPUnit as a dev dependency.
* chore(ci): Dropped a ton of the juggling in favor of version juggling in Composer.
* fix(readme): Corrected the badge for the license.
* chore(composer): Bumped the package's version number.
2019-12-05 19:32:12 -06:00
e97edee508 feat: include all endpoints
* Reworked interfacing to drop the versioning in the class name.
* Refactored / cleaned up existing code.
* Stuck with support for PHP 5.3+ since PHP 5.x still seems to hold majority.
* Abstracted request logic to another class for mocking.
* Added test suite and hit full code coverage.
* Updated readme, included migration guide and the full gamut of examples.
* Wired up travis-ci and coveralls for testing and coverage.
2019-10-10 00:12:13 -05:00
Josh Sherman
1e22fd8fbe Quick and dirty 2016-08-10 22:47:31 -05:00