Latvian name day calendar data. I took names from Latvian State Language Center's official website.
- PHP >= 8.1
You can install name-days via Composer with:
composer require "mixislv/name-days"
Or by adding the following to your composer.json:
"require": {
"mixislv/name-days": "^2.1"
}
use mixisLv\NameDays\NameDays;
$nameDays = new NameDays();
var_dump($nameDays->getNames());
var_dump($nameDays->getNames("09-29"));
var_dump($nameDays->getNames("2019-09-29"));
var_dump($nameDays->getNames("09-29")->toArray());
var_dump($nameDays->getNames("09-29")->toString());
var_dump($nameDays->getDate("MiKuS"));
var_dump($nameDays->getDate("MiKuS", true));
Check out examples directory for usage examples