macropage/normalizer

String normalization library for PHP.

dev-master 2021-06-23 20:07 UTC

This package is auto-updated.

Last update: 2022-11-23 23:18:02 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'