A set of dependency-free basic internationalization tools
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
J. King 07d26e3f45 Add BOM handling 3 years ago
lib Add BOM handling 3 years ago
perf Style fixes 6 years ago
tests Add BOM handling 3 years ago
tools Speed up encoding; make ISO 2022-JP more consistent 4 years ago
vendor-bin Update tooling 3 years ago
.gitattributes Prepare release 4 years ago
.gitignore Upgrade to PHPUnit 8 4 years ago
.php_cs.dist Apply stricter house style where possible 4 years ago
AUTHORS Split off UTF-8 tools from URL parser 6 years ago
CHANGELOG Add BOM handling 3 years ago
LICENSE Split off UTF-8 tools from URL parser 6 years ago
README.md Tests for replacement encoding; readme correction 4 years ago
RoboFile.php Update tooling 3 years ago
composer.json Validate for PHP 8 3 years ago
composer.lock Validate for PHP 8 3 years ago
robo Tooling update 4 years ago
robo.bat Add infrstructure required for tests 6 years ago

README.md

Dependency-free internationalization tools for PHP

While PHP's internationalization extension offers excellent and extensive functionality for dealing with human languages, character encodings, and various related things, it is not always available. Moreover, its character decoder does not yield the same results as WHATWG's Encoding standard, making it unsuitable for implementing parsers for URLs or HTML. The more widely used multi-byte string extension not only suffers the same problems, but is also very slow.

Included here is a complete suite of WHATWG-compatible seekable string decoders which are reasonably performant while requiring no external dependencies or PHP extensions. Where applicable, code point encoders are also included. In time it may also provide other character-centric internationalization functionality.