https://github.com/koriym/print_o
An object graph visualizer
https://github.com/koriym/print_o
Last synced: about 1 year ago
JSON representation
An object graph visualizer
- Host: GitHub
- URL: https://github.com/koriym/print_o
- Owner: koriym
- License: bsd-3-clause
- Created: 2012-07-28T20:39:41.000Z (almost 14 years ago)
- Default Branch: 1.x
- Last Pushed: 2024-01-02T01:57:59.000Z (over 2 years ago)
- Last Synced: 2024-10-11T08:14:17.641Z (over 1 year ago)
- Language: PHP
- Homepage: Display mind-map style object graph
- Size: 2.31 MB
- Stars: 142
- Watchers: 11
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: .github/SECURITY.md
Awesome Lists containing this project
- awesome-php-cn - 官网
- awesome-php - print_o - 一个对象图的可视化器 (杂项 Miscellaneous)
README
# print_o
## An object graph visualizer for PHP
[](https://scrutinizer-ci.com/g/koriym/print_o/?branch=1.x)
[](https://travis-ci.org/koriym/print_o)
[](https://scrutinizer-ci.com/g/koriym/print_o/?branch=1.x)

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

#### With properties

#### Full extract

### Requirements
* PHP 5.4+
### Installation
```javascript
{
"require-dev": {
"koriym/printo": "~1.0"
}
}
```
### Usage
```php
print_o($object);
//or
use Koriym\Printo\Printo;
echo (new Printo($object))
->setRange(Printo::RANGE_PROPERTY)
->setLinkDistance(130)
->setCharge(-500);
```
### Live demo
* [Aura.Framework_Project](http://koriym.github.io/print_o/v1/libs/aura.framework_project.html) [](https://github.com/auraphp/Aura.Framework_Project)
* [BEAR.Sunday](http://koriym.github.io/print_o/v1/libs/bear.sunday.html) [](https://github.com/koriym/BEAR.Sunday)