RFC 1751 encoder and decoder library for PHP.
composer require 'arokettu/rfc1751'
<?php
\Arokettu\Rfc1751\Rfc1751::encode("\x01\x23\x45\x67\x89\xab\xcd\xef");
// = 'AIM HEW BLUM FED MITE WARM'
\Arokettu\Rfc1751\Rfc1751::decode('AIM HEW BLUM FED MITE WARM');
// = "\x01\x23\x45\x67\x89\xab\xcd\xef"
Read full documentation here: https://sandfox.dev/php/rfc1751.html
Please file issues on our main repo at GitLab: https://gitlab.com/sandfox/php-rfc1751/-/issues
Feel free to ask any questions in our room on Gitter: https://gitter.im/arokettu/community
The library is available as open source under the terms of the MIT License.