bhrdn/diactoros

Unicode Character Replacer

1.0.0 2018-03-18 04:26 UTC

This package is not auto-updated.

Last update: 2024-09-29 05:21:08 UTC


README

Unicode Character Replacer

Installing

$ composer require bhrdn/diactoros

Getting started

$app = new \Diactoros\Diactoros;
$app->addReplacer(["Z" => "\u{0410}"]); // change Z with unicode char A
$app->addText(implode('', range("A", "Z")));
print_r($app->encode()); // A...A

License

This project is licensed under the MIT License - see the LICENSE.md file for details