kba-team / byte-debug
A simple class for debugging bytes by converting them to a printable string.
Installs: 1 638
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=7.4, <8.4
Requires (Dev)
- phpunit/phpunit: ^9.6
This package is auto-updated.
Last update: 2024-11-26 15:41:24 UTC
README
A simple class for debugging bytes by converting them to a printable string.
This is useful for all kinds of debugging, in case you receive strings containig all sorts of non-printable characters mixed into printable ones.
Usage
Add the package to your repository:
composer require kba-team/byte-debug
Use:
<?php echo \kbATeam\ByteDebug\ToString::fromString('hello'.chr(10).'world!'); //output: hellox0Aworld!