neriba / lt-case
Inflection of Lithuanian names and surnames
1.0.1
2022-11-16 11:30 UTC
Requires
- php: >=5.5
Requires (Dev)
- phpunit/phpunit: 10.0.x-dev
README
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
License
The MIT License (MIT). Please see License File for more information.