mixislv/name-days

Latvian Name Days

2.1.0 2022-04-23 19:37 UTC

This package is auto-updated.

Last update: 2024-12-11 09:43:31 UTC


README

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