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 year ago
lib Don't use @; fix dynamic properties 1 year 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 Don't use @; fix dynamic properties 1 year 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 Don't use @; fix dynamic properties 1 year 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 Don't use @; fix dynamic properties 1 year ago
composer.lock Don't use @; fix dynamic properties 1 year 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.