2017 © Pedro PelĂĄez
 

library hexdump

Hexdump utility for PHP

image

jhartell/hexdump

Hexdump utility for PHP

  • Sunday, April 15, 2018
  • by jhartell
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Build Status, (*1)

jhartell/hexdump

Hexdump utility for PHP. Print binary data in a similar format to the hexdump (hd) command line tool. Useful when debugging socket communications or handling binary files., (*2)

Installation

Install the latest version with, (*3)

$ composer require jhartell/hexdump

Usage

<?php
use Jhartell\Hexdump\Hexdump;
$hexdump = new Hexdump();
$data = "This is a string with non-printable \x05\x10 characters\x00";
?>
<pre>
<?php echo $hexdump->dump($data); ?>
</pre>

This will output the data in the default Hex+ASCII format., (*4)

00000000  54 68 69 73 20 69 73 20  61 20 73 74 72 69 6e 67  |This is a string|
00000010  20 77 69 74 68 20 6e 6f  6e 2d 70 72 69 6e 74 61  | with non-printa|
00000020  62 6c 65 20 05 10 20 63  68 61 72 61 63 74 65 72  |ble .. character|
00000030  73 00                                             |s.|
00000032

The Versions

15/04 2018

dev-master

9999999-dev

Hexdump utility for PHP

  Sources   Download

MIT

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

by Johnny HĂ€rtell

16/04 2016

v0.2.0

0.2.0.0

Hexdump utility for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Johnny HĂ€rtell

12/04 2016

v0.1.0

0.1.0.0

Hexdump utility for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Johnny HĂ€rtell