Skip to content

PseudoDevs/VarPrintifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VarPrintifier

A PHP package that provides a simple and easy-to-use function to pretty print variables for debugging purposes.

Printifier

Installation

This package can be easily installed using Composer. Run the following command to add it to your project's dependencies:

composer require iamjohndev/var-print-prettifier

Usage

use iamjohndev\VarPrintPrettifier;

$data = [
    'name' => 'John Doe',
    'age' => 30,
    'email' => '[email protected]',
    'address' => [
        'street' => '123 Main St',
        'city' => 'Anytown',
        'state' => 'CA',
        'zip' => '12345'
    ]
];

VarPrintifier::var_dump($data);
VarPrintifier::print_r($data);

The dump method pretty prints the given variable in a human-readable format. It can be used to debug complex data structures and objects.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages