A set of dependency-free basic internationalization tools
Find a file
2024-12-27 07:23:00 -05:00
lib Update for PHP 8.4 2024-12-27 07:23:00 -05:00
perf Style fixes 2018-08-10 15:00:30 -04:00
tests Update for PHP 8.4 2024-12-27 07:23:00 -05:00
tools Speed up encoding; make ISO 2022-JP more consistent 2020-10-19 23:12:45 -04:00
vendor-bin Update for PHP 8.4 2024-12-27 07:23:00 -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 for PHP 8.4 2024-12-27 07:23:00 -05:00
composer.json Don't use @; fix dynamic properties 2023-01-25 17:12:58 -05:00
composer.lock Update for PHP 8.4 2024-12-27 07:23:00 -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.