mirror of
https://github.com/holidayapi/holidayapi-php.git
synced 2025-06-21 04:16:31 +00:00
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.
This commit is contained in:
parent
b6fad34f19
commit
45ca80d846
4 changed files with 179 additions and 8 deletions
13
README.md
13
README.md
|
@ -252,3 +252,16 @@ $holiday_api->holidays([
|
|||
'year' => 2019,
|
||||
]);
|
||||
```
|
||||
|
||||
### Workday
|
||||
|
||||
#### Fetch workday 7 business days after a date
|
||||
|
||||
```php
|
||||
<?php
|
||||
$holiday_api->workday([
|
||||
'country' => 'US',
|
||||
'start' => '2019-07-01',
|
||||
'days' => 7,
|
||||
]);
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue