PHPackages                             clue/hexdump - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. clue/hexdump

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

clue/hexdump
============

View any (binary) string as a hexdump

v0.2.0(12y ago)1256.0k—6.1%13MITPHPPHP &gt;=5.3

Since Jun 22Pushed 12y ago4 watchersCompare

[ Source](https://github.com/clue/php-hexdump)[ Packagist](https://packagist.org/packages/clue/hexdump)[ Docs](https://github.com/clue/hexdump)[ RSS](/packages/clue-hexdump/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (3)

clue/hexdump [![Build Status](https://camo.githubusercontent.com/f02ad4abfa817d9d8c031be9a60b2d0f8669bb0e0cd6bc85732e4ab8ca50af55/68747470733a2f2f7472617669732d63692e6f72672f636c75652f7068702d68657864756d702e706e67)](https://travis-ci.org/clue/php-hexdump)
================================================================================================================================================================================================================================================================

[](#cluehexdump-)

View any (binary) string as a hexdump

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.

Usage
-----

[](#usage)

Once [installed](#install), using this library is as simple as running:

```
$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:

```
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
-------

[](#install)

The recommended way to install this library is [through composer](http://getcomposer.org). [New to composer?](http://getcomposer.org/doc/00-intro.md)

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

License
-------

[](#license)

All credits go to Aidan Lister. This library is based on [his work](https://github.com/aidanlister/code/blob/master/function.hexdump.php)which has been released as public domain.

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.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

4713d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/776829?v=4)[Christian Lück](/maintainers/clue)[@clue](https://github.com/clue)

---

Top Contributors

[![clue](https://avatars.githubusercontent.com/u/776829?v=4)](https://github.com/clue "clue (20 commits)")[![aidanlister](https://avatars.githubusercontent.com/u/54896?v=4)](https://github.com/aidanlister "aidanlister (1 commits)")

---

Tags

binaryhexdumpnetwork protocol debugging

### Embed Badge

![Health badge](/badges/clue-hexdump/health.svg)

```
[![Health](https://phpackages.com/badges/clue-hexdump/health.svg)](https://phpackages.com/packages/clue-hexdump)
```

###  Alternatives

[alchemy/binary-driver

A set of tools to build binary drivers

19110.9M39](/packages/alchemy-binary-driver)[comcast/php-legal-licenses

A utility to generate a Licenses file containing the full license text for every dependency in your project for legal purposes.

821.1M9](/packages/comcast-php-legal-licenses)[wapmorgan/binary-stream

A handy tool for working with binary data

52263.1k6](/packages/wapmorgan-binary-stream)[ademarre/binary-to-text-php

Collection of binary-to-text encoding utilities for PHP. Includes Base32 support and much more.

40165.8k](/packages/ademarre-binary-to-text-php)[phar-io/composer-distributor

Base Code for a composer plugin that installs PHAR-files

13581.1k6](/packages/phar-io-composer-distributor)[yaroslavche/bitmask

BitMask, EnumBitMask

3453.7k1](/packages/yaroslavche-bitmask)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
