Skip to content

A simple class for debugging bytes by converting them to a printable string.

License

Notifications You must be signed in to change notification settings

the-kbA-team/ByteDebug

Repository files navigation

ByteDebug

License: MIT Build Status Maintainability Test Coverage

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!

About

A simple class for debugging bytes by converting them to a printable string.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages