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 1 month ago
lib Add BOM handling 1 month ago
perf Style fixes 3 years ago
tests Add BOM handling 1 month ago
tools Speed up encoding; make ISO 2022-JP more consistent 1 year ago
vendor-bin Update tooling 9 months ago
.gitattributes Prepare release 1 year ago
.gitignore Upgrade to PHPUnit 8 2 years ago
.php_cs.dist Apply stricter house style where possible 1 year ago
AUTHORS Split off UTF-8 tools from URL parser 4 years ago
CHANGELOG Add BOM handling 1 month ago
LICENSE Split off UTF-8 tools from URL parser 4 years ago
README.md Tests for replacement encoding; readme correction 1 year ago
RoboFile.php Update tooling 9 months ago
composer.json Validate for PHP 8 9 months ago
composer.lock Validate for PHP 8 9 months ago
robo Tooling update 2 years ago
robo.bat Add infrstructure required for tests 4 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.