icetee / nameday
Name day(s) - It consists of celebrating a day of the year that is associated with one's given name.
v2.0.0
2018-12-28 03:58 UTC
Requires
- php: >=7.1
Requires (Dev)
- phpunit/phpunit: ^6.3
This package is auto-updated.
Last update: 2025-01-29 00:14:54 UTC
README
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"]