Search by

kba-team / byte-debug

grej

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

Package info

github.com/the-kbA-team/ByteDebug

pkg:composer/kba-team/byte-debug

Statistics

Installs: 2 092

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v2.0.2 2026-09-02 13:52 UTC

This package is auto-updated.

Last update: 2026-09-02 14:08:15 UTC


README

License: MIT

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!

Development

All development commands (install, test, lint, analyze, beautify, sniff, audit, validate) run via Docker through the Makefile, so no local PHP installation is needed. Run make help to list all targets. Most targets require PHP_VERSION, e.g.:

make install PHP_VERSION=8.1