J. King
540d8a237e
|
6 years ago | |
---|---|---|
lib/Encoding | 6 years ago | |
perf | 6 years ago | |
tests | 6 years ago | |
vendor-bin | 6 years ago | |
.gitattributes | 7 years ago | |
.gitignore | 7 years ago | |
.php_cs.dist | 6 years ago | |
AUTHORS | 7 years ago | |
LICENSE | 7 years ago | |
README.md | 6 years ago | |
RoboFile.php | 6 years ago | |
composer.json | 6 years ago | |
composer.lock | 6 years ago | |
robo | 7 years ago | |
robo.bat | 7 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 WHATWG-compatible UTF-8 string decoder which is reasonably performant while requiring no external dependencies or PHP extensions. In time it will be extended to cover the entire suite of WHATWG character encodings, and may also provide other character-centric internationalization functionality.