mixislv / name-days
Latvian Name Days
2.1.0
2022-04-23 19:37 UTC
Requires
- php: ^7.3 || ^8.0
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- php-coveralls/php-coveralls: ^2.1
- phpunit/php-code-coverage: ^9.2
- phpunit/phpunit: ^9.5
- smalot/pdfparser: ^2.2
README
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