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

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 data
Octocat-spinner-32 gh-pages @ 893b35a
Octocat-spinner-32 libs
Octocat-spinner-32 src
Octocat-spinner-32 tests
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 Licence.txt
Octocat-spinner-32 README.md
Octocat-spinner-32 composer.json
Octocat-spinner-32 phpunit.xml.dist
Octocat-spinner-32 src.php
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.