koriym / printo
An object graph visualizer.
Installs: 1 690 359
Dependents: 2
Suggesters: 0
Security: 0
Stars: 143
Watchers: 10
Forks: 13
Open Issues: 0
pkg:composer/koriym/printo
Requires
- php: >=5.4.0
Requires (Dev)
- phpunit/phpunit: ^9.5 || ^10.0 || ^11.0
This package is auto-updated.
Last update: 2026-01-14 15:48:18 UTC
README
An object graph visualizer for PHP
print_o visualizes PHP object graphs as interactive diagrams, making it easy to understand complex object relationships in your application.
Features
- Visual representation of object relationships
- Interactive graph with configurable properties
- Support for different visualization ranges (objects only, with properties, or full details)
Quick Start
print_o($object);
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
composer require --dev koriym/printo
Usage
print_o($object); //or use Koriym\Printo\Printo; echo (new Printo($object)) ->setRange(Printo::RANGE_PROPERTY) ->setLinkDistance(130) ->setCharge(-500);