macropage / normalizer
String normalization library for PHP.
dev-master
2021-06-23 20:07 UTC
Requires
- php: >=5.3.0
- michabbb/ejz-core: dev-master
This package is auto-updated.
Last update: 2024-11-24 03:50:49 UTC
README
Normalizer
String normalization library for PHP.
Quick start
$ mkdir myproject && cd myproject $ curl -sS 'https://getcomposer.org/installer' | php $ nano -w composer.json
Insert following code:
{ "require": { "ejz/normalizer": "~1.0" } }
Now install dependencies:
$ php composer.phar install
If everything is OK, let's go with testing:
<?php define('ROOT', __DIR__); require(ROOT . '/vendor/autoload.php'); use Ejz\Normalizer; $str = " Hello, world! "; $_str = Normalizer::go($str, 'en'); echo "'{$str}' --> '{$_str}'", chr(10);
' Hello, world! ' --> 'hello world'