A set of dependency-free basic internationalization tools
Find a file
2021-03-24 08:59:59 -04:00
lib Partial tests for ASCII spanning 2021-03-24 08:59:59 -04:00
perf Style fixes 2018-08-10 15:00:30 -04:00
tests Partial tests for ASCII spanning 2021-03-24 08:59:59 -04:00
tools Speed up encoding; make ISO 2022-JP more consistent 2020-10-19 23:12:45 -04:00
vendor-bin Update tooling 2021-03-12 18:23:57 -05:00
.gitattributes Prepare release 2020-10-27 19:17:36 -04:00
.gitignore Upgrade to PHPUnit 8 2019-12-13 11:05:01 -05:00
.php_cs.dist Apply stricter house style where possible 2020-10-06 11:42:30 -04:00
AUTHORS Split off UTF-8 tools from URL parser 2018-04-23 11:04:40 -04:00
CHANGELOG Update changeloog 2021-03-06 22:55:19 -05:00
composer.json Validate for PHP 8 2021-03-06 22:53:04 -05:00
composer.lock Validate for PHP 8 2021-03-06 22:53:04 -05:00
LICENSE Split off UTF-8 tools from URL parser 2018-04-23 11:04:40 -04:00
README.md Tests for replacement encoding; readme correction 2020-10-17 13:52:32 -04:00
robo Tooling update 2019-12-13 09:22:12 -05:00
robo.bat Add infrstructure required for tests 2018-04-23 14:21:25 -04:00
RoboFile.php Update tooling 2021-03-12 18:23:57 -05:00

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.