An object graph visualizer
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src Use protocol-relative URL for d3.min.js Apr 20, 2016
tests
.gitignore
.php_cs update metafiles May 14, 2015
.scrutinizer.yml update metafiles May 14, 2015
.travis.yml
Licence.txt update year Mar 5, 2015
README.md Update README.md Jun 30, 2015
build.xml add ignore files May 9, 2014
composer.json MIT license May 14, 2015
phpcs.xml update metafiles May 14, 2015
phpmd.xml update metafiles May 14, 2015
phpunit.xml simpler phpunit config file May 10, 2014

README.md

print_o

An object graph visualizer for PHP

Scrutinizer Code Quality Build Status Code Coverage object graph

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

only object

With properties

+property

Full extract

+array

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);

Live demo