diff --git a/README.md b/README.md index e3e827e..bb4dece 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ composer require holidayapi/holidayapi-php ## Usage ```php + $key]); @@ -64,12 +65,14 @@ try { #### Fetch all supported countries ```php +countries(); ``` #### Fetch only countries with public holidays ```php +countries([ 'public' => true, ]); @@ -78,6 +81,7 @@ $holiday_api->countries([ #### Fetch a supported country by code ```php +countries([ 'country' => 'NO', ]); @@ -86,6 +90,7 @@ $holiday_api->countries([ #### Search for countries by code or name ```php +countries([ 'search' => 'united', ]); @@ -96,12 +101,14 @@ $holiday_api->countries([ #### Fetch all supported languages ```php +languages(); ``` #### Fetch a supported language by code ```php +languages([ 'language' => 'es', ]); @@ -110,6 +117,7 @@ $holiday_api->languages([ #### Search for languages by code or name ```php +languages([ 'search' => 'Chinese', ]); @@ -120,6 +128,7 @@ $holiday_api->languages([ #### Fetch holidays for a specific year ```php +holidays([ 'country' => 'US', 'year' => 2019, @@ -129,6 +138,7 @@ $holiday_api->holidays([ #### Fetch holidays for a specific month ```php +holidays([ 'country' => 'US', 'year' => 2019, @@ -139,6 +149,7 @@ $holiday_api->holidays([ #### Fetch holidays for a specific day ```php +holidays([ 'country' => 'US', 'year' => 2019, @@ -150,6 +161,7 @@ $holiday_api->holidays([ #### Fetch upcoming holidays based on a specific date ```php +holidays([ 'country' => 'US', 'year' => 2019, @@ -162,6 +174,7 @@ $holiday_api->holidays([ #### Fetch previous holidays based on a specific date ```php +holidays([ 'country' => 'US', 'year' => 2019, @@ -174,6 +187,7 @@ $holiday_api->holidays([ #### Fetch only public holidays ```php +holidays([ 'country' => 'US', 'year' => 2019, @@ -184,6 +198,7 @@ $holiday_api->holidays([ #### Fetch holidays for a specific subdivision ```php +holidays([ 'country' => 'GB-ENG', 'year' => 2019, @@ -193,6 +208,7 @@ $holiday_api->holidays([ #### Include subdivision holidays with countrywide holidays ```php +holidays([ 'country' => 'US', 'year' => 2019, @@ -203,6 +219,7 @@ $holiday_api->holidays([ #### Search for a holiday by name ```php +holidays([ 'country' => 'US', 'year' => 2019, @@ -213,6 +230,7 @@ $holiday_api->holidays([ #### Translate holidays to another language ```php +holidays([ 'country' => 'US', 'year' => 2019, @@ -223,6 +241,7 @@ $holiday_api->holidays([ #### Fetch holidays for multiple countries ```php +holidays([ 'country' => 'US,GB,NZ', 'year' => 2019, diff --git a/composer.json b/composer.json index 93d9423..53a6924 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "holidayapi/holidayapi-php", "description": "Official PHP library for Holiday API", - "version": "2.2.1", + "version": "2.2.2", "type": "library", "keywords": [ "calendar",