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