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