Download the PHP package xnekv03/nameday-api without Composer
On this page you can find all versions of the php package xnekv03/nameday-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xnekv03/nameday-api
More information about xnekv03/nameday-api
Files in xnekv03/nameday-api
Package nameday-api
Short Description Nameday API library for https://nameday.abalin.net
License MIT
Homepage https://github.com/xnekv03/api_nameday
Informations about the package nameday-api
Official International Name days API library
Name day API library for nameday.abalin.net
This library makes it easy to send requests towards nameday.abalin.net API. API provides name days for various countries.
Installation
The recommended way to install package is through Composer.
Next, run the Composer command to install the latest stable version of package:
After installing, you need to require Composer's autoloader:
You can then later update package using composer:
List of supported countries
- Country names
- United States
- Czech Republic
- Slovakia
- Poland
- France
- Hungary
- Croatia
- Sweden
- Austria
- Italy
- Germany
- Spain
- Country codes
- us
- cz
- sk
- pl
- fr
- hu
- hr
- se
- at
- it
- de
- es
Usage
create an instance of the class
Request name days for today / tomorrow / yesterday
Request name days for specific date
Request name day in country calendar
Will return all days which contains the name.
searchByName(string $name)
Specification of time zone
Time zone is set by local settings. Therefore will return result according to that. If you need to specify different time zone you can do so by adding optional parameter to the constructor. must be PHP time zones string or integer offset to GMT.
Certificate
Make sure you have proper certificates stored on your local machine as Name day API uses HTTPS only.
If you run into problems with server certificate try downloading the The Mozilla CA certificate store, save it on your system and configure
All versions of nameday-api with dependencies
ext-json Version *
nesbot/carbon Version 3.8.*
guzzlehttp/guzzle Version 7.9.*