neriba/lt-case

Inflection of Lithuanian names and surnames

1.0.1 2022-11-16 11:30 UTC

This package is auto-updated.

Last update: 2024-11-16 15:45:53 UTC


README

Latest Stable Version Total Downloads License

Instalation

To install via composer:

composer require neriba/lt-case

What It Does

This package allows you to inflect Lithuanian names and surnames.

use \NeriBa\LTCase\LTCase;

echo LTCase::get('Kęstutis Mažvydas !@#$#%^%&^%***___---??','kil'); // Result: Kęstučio Mažvydo
echo LTCase::get('Kęstutis Mažvydas !@#$#%^%&^%***___---??','nau'); // Result: Kęstučiui Mažvydui
echo LTCase::get('Kęstutis Mažvydas !@#$#%^%&^%***___---??','gal'); // Result: Kęstutį Mažvydą
echo LTCase::get('Kęstutis Mažvydas !@#$#%^%&^%***___---??','ina'); // Result: Kęstučiu Mažvydu
echo LTCase::get('Kęstutis Mažvydas !@#$#%^%&^%***___---??','vie'); // Result: Kęstutyje Mažvyde
echo LTCase::get('Kęstutis Mažvydas !@#$#%^%&^%***___---??','sau'); // Result: Kęstuti Mažvydai

NOTE: If you don't want to use package, you can just use class from Gist

LTCase class Gist

License

The MIT License (MIT). Please see License File for more information.