Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/koriym/print_o

An object graph visualizer
https://github.com/koriym/print_o

Last synced: 3 months ago
JSON representation

An object graph visualizer

Lists

README

        

# print_o

## An object graph visualizer for PHP

[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/koriym/print_o/badges/quality-score.png?b=develop)](https://scrutinizer-ci.com/g/koriym/print_o/?branch=1.x)
[![Build Status](https://travis-ci.org/koriym/print_o.svg?branch=1.x)](https://travis-ci.org/koriym/print_o)
[![Code Coverage](https://scrutinizer-ci.com/g/koriym/print_o/badges/coverage.png?b=develop)](https://scrutinizer-ci.com/g/koriym/print_o/?branch=1.x)
![object graph](http://koriym.github.io/print_o/v1/img/big.png)

### 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
![only object](http://koriym.github.io/print_o/v1/img/object.png)

#### With properties
![+property](http://koriym.github.io/print_o/v1/img/prop.png)

#### Full extract
![+array](http://koriym.github.io/print_o/v1/img/full.png)

### 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) [![github](http://koriym.github.io/print_o/images/gh.png)](https://github.com/auraphp/Aura.Framework_Project)

* [BEAR.Sunday](http://koriym.github.io/print_o/v1/libs/bear.sunday.html) [![github](http://koriym.github.io/print_o/images/gh.png)](https://github.com/koriym/BEAR.Sunday)