print_o
An object graph visualizer for PHP
What is object graph ?
Object-oriented applications contain complex webs of interrelated objects. Objects are linked to each other by one object either owning or containing another object or holding a reference to another object. This web of objects is called an object graph and it is the more abstract structure that can be used in discussing an application's state. - wikipedia
(JA) ãĒãã¸ã§ã¯ãæåãŽãĸããĒãąãŧãˇã§ãŗã¯į¸äēãĢéĸäŋãŽããč¤éãĒãĒãã¸ã§ã¯ãįļ˛ãåĢãã§ããžãããĒãã¸ã§ã¯ãã¯ãããĒãã¸ã§ã¯ãããææãããĻããããäģãŽãĒãã¸ã§ã¯ãīŧãžãã¯ããŽãĒããĄãŦãŗãšīŧãåĢãã§ããããããŽãŠãĄããã§ãäēããĢæĨįļãããĻããžããããŽãĒãã¸ã§ã¯ãįļ˛ããĒãã¸ã§ã¯ãã°ãŠãã¨åŧãŗãžãã
Simple object graph
With properties
Full extract
Requirements
- PHP 5.4+
Installation
{
"require-dev": {
"koriym/printo": "~1.0"
}
}
Usage
print_o($object);
//or
use Koriym\Printo\Printo;
echo (new Printo($object))
->setRange(Printo::RANGE_PROPERTY)
->setLinkDistance(130)
->setCharge(-500);