alexeyplodenko/php-dumper

The package provides a simple dump function, to output the variables and stop execution.

Installs: 12

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/alexeyplodenko/php-dumper

1.0.3 2023-10-03 08:54 UTC

This package is auto-updated.

Last update: 2025-10-01 00:16:24 UTC


README

Motivation

Being a lazy developer, I do not want to install XDebug or any other tool. But rather start coding and debugging with the existing setup right now.

The package provides a simple dump function, to output the variables and stop execution.

Install

Run composer require alexeyplodenko/php-dumper

Usage

<?php
require 'vendor/autoload.php';

d(NULL, 'string', '', 123);

Outputs in a browser and CLI:

NULL

string

(empty string)

123

#0 E:\web\AlexeyPlodenko\php-dumper\index.php(3): d(NULL, 'string', '', 123)
#1 {main}

Dependencies

No dependencies.