PHPackages                             alddesign/php-xout - 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. alddesign/php-xout

ActiveLibrary

alddesign/php-xout
==================

A more readable implementation of PHPs var\_dump() function

1.0.0(1y ago)081PHPPHP &gt;= 5.4

Since Jul 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/alddesign/php-xout)[ Packagist](https://packagist.org/packages/alddesign/php-xout)[ RSS](/packages/alddesign-php-xout/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

php-xout
========

[](#php-xout)

A more readable, syntax highlighted implementation of PHPs `var_dump()` or `print_r()` function.
*Compatible with all PHP versions **back to 5.4***

Installation
------------

[](#installation)

### Via Composer

[](#via-composer)

`composer require alddesign/php-xout`

### Manual

[](#manual)

Downlaod the package and load `xout.php`:

```
require_once 'xout.php'
```

Usage
-----

[](#usage)

```
//code before...
$array =
[
    'cars' => ['audi','bmw','volkswagen'],
    'settings' => (object)
    [
        'drive' => true,
        'disable_car' =>
        function(){}
    ],
    'value' => 220.25,
    'active' => null
];

//Call xout
Xout::xout($array);

//Or use the shorthand function:
xout($var);
```

The output will look like this:
[![output](test/output.png)](test/output.png)

Remarks
-------

[](#remarks)

### Parameters

[](#parameters)

- **value**: The expression to output
- **return** (bool): If set to `true` the resulting html is being returned insted of echoing it. Default: `false`
- **dontDie** (bool): If set to `true` the script will not terminated. When `return` is set to `true`, this parameter has no effect. Default: `false`

### Customization

[](#customization)

In `xout.php` you can change many options like font, color, brace style,...

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

667d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/705a5b60c4ea7dc7356d2308539044b4f611febda8779ff2b8ef3c12a37a7478?d=identicon)[alddesign](/maintainers/alddesign)

---

Top Contributors

[![alddesign](https://avatars.githubusercontent.com/u/30912084?v=4)](https://github.com/alddesign "alddesign (18 commits)")

---

Tags

phpphp-5-4php-5-6php-7-4php-8php-debugingphp-helperssyntax-highlighting

### Embed Badge

![Health badge](/badges/alddesign-php-xout/health.svg)

```
[![Health](https://phpackages.com/badges/alddesign-php-xout/health.svg)](https://phpackages.com/packages/alddesign-php-xout)
```

PHPackages © 2026

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