Skip to content

mixisLv/name-days

Repository files navigation

Latvian Name Day Calendar

Build Status GitHub license GitHub release Coverage Status

Latvian name day calendar data. I took names from Latvian State Language Center's official website.

Requirements

  • PHP >= 8.1

Installation

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"
}

Usage

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