organiseyou / name-service
There is no license information available for the latest version (v1.1) of this package.
v1.1
2025-09-10 23:33 UTC
Requires
- php: ^8.0
Requires (Dev)
- phpunit/phpunit: ^10.0
This package is auto-updated.
Last update: 2025-09-10 23:38:55 UTC
README
This is a library that convert the names that are used in projects.
Add service to an project
composer req organiseyou/name-service
Usage
Convert an name from url to an internal name
$internalName = Organiseyou\NameService\ConvertService::urlToName($name);
Convert an friendly written name to an internal name
$internalName = Organiseyou\NameService\ConvertService::saveConvert($name);
Convert an internal name to an url friendly name
$urlFriendlyName = ConvertService::convertNameToId($internalName);
Run tests
To run the tests, first clone the project to an repository
git clone git@github.com:OrganiseYou/NameService.git
And go to the directory
cd NameService
Run composer install
php ./vendor/bin/phpunit tests