2017 © Pedro Peláez
 

library hexdump

View any (binary) string as a hexdump

image

clue/hexdump

View any (binary) string as a hexdump

  • Tuesday, May 20, 2014
  • by clue
  • Repository
  • 2 Watchers
  • 11 Stars
  • 766 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 6 % Grown

The README.md

clue/hexdump Build Status

View any (binary) string as a hexdump, (*1)

This is most commonly used to view binary data from streams or sockets while debugging, but can be used to view any string with non-viewable characters., (*2)

Usage

Once installed, using this library is as simple as running:, (*3)

$dumper = new Clue\Hexdump\Hexdump();
echo $dumper->dump("this string \x12\x15\x16 contains \x00 binary \x04 data");

Its output will look something like this:, (*4)

0000  74 68 69 73 20 73 74 72  69 6e 67 20 12 15 16 20   this str ing ... 
0010  63 6f 6e 74 61 69 6e 73  20 00 20 62 69 6e 61 72   contains  . binar
0020  79 20 04 20 64 61 74 61                            y . data

Install

The recommended way to install this library is through composer. New to composer?, (*5)

{
    "require": {
        "clue/hexdump": "0.2.*"
    }
}

License

All credits go to Aidan Lister. This library is based on his work which has been released as public domain., (*6)

This library is merely a standalone version that can be easily installed via composer. It's released under the terms of the permissive MIT license., (*7)

The Versions

20/05 2014

dev-master

9999999-dev https://github.com/clue/php-hexdump

View any (binary) string as a hexdump

  Sources   Download

MIT

The Requires

  • php >=5.3

 

binary hexdump network protocol debugging

22/06 2013

v0.2.0

0.2.0.0 https://github.com/clue/hexdump

View any (binary) string as a hexdump

  Sources   Download

MIT

The Requires

  • php >=5.3

 

binary hexdump network protocol debugging

22/06 2013

v0.1.0

0.1.0.0 https://github.com/clue/hexdump

View any (binary) string as a hexdump

  Sources   Download

MIT

The Requires

  • php >=5.3

 

binary hexdump network protocol debugging