Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 859 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 859 Bytes

Name day

Build Status

A name day is a tradition in some countries in Europe, Latin America, and Roman Catholic and Eastern Orthodox countries in general. It consists of celebrating a day of the year that is associated with one's given name. The celebration is similar to a birthday.

Load with composer

The simplest solution is to call the package when using a composer. This cli command, install the package.

composer require icetee/nameday

Usage

Create instance:

$nameday = new \Icetee\Nameday\Nameday(DateTime $date = null, $lang = null);

Get current name days:

$names = nameday->getNameDay(int $limit = 0);

Dump of $names (it is always an array):

["Tamás", "Tamara"]