Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An object graph visualizer

branch: develop
README.md

print_o

An object graph visualizer for PHP

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) オブジェクト指向のアプリケーションは相互に関係のある複雑なオブジェクト網を含んでいます。オブジェクトはあるオブジェクトから所有されているか、他のオブジェクト(またはそのリファレンス)を含んでいるか、そのどちらかでお互いに接続されています。このオブジェクト網をオブジェクトグラフと呼びます。

Requirements

  • PHP 5.4+

Usage

print_o() displays information about a object graph and variable in a way that's readable by humans. print_o() also show protected and private properties of objects with PHP 5. Static class members will be shown unlike print_r, var_dump.

<?php
require '/path/to/print_o/src.php';

...
print_o($obj);

Try click, double click, or drag.

Live demo

Dependencies

Something went wrong with that request. Please try again.