taeon/php-object-explorer

Interactive PHP object explorer

0.4 2017-07-29 14:30 UTC

This package is auto-updated.

Last update: 2024-05-23 05:48:08 UTC


README

An easier way to examine the properties of objects in PHP

Installation

Either download the ZIP file and include the autoloader.php file, or you can use composer:

composer require taeon/php-object-explorer

Usage

Pass the data that you want to explore into a new Explorer object, and then render the result:

$explorer = new \PHPObjectExplorer\Explorer($data);
echo( $explorer->Render() );

...that's it.

The output is 'collapsed' by default. Click on any property to expand it.