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
- Host: GitHub
- URL: https://github.com/koriym/print_o
- Owner: koriym
- License: bsd-3-clause
- Created: 2012-07-28T20:39:41.000Z (almost 12 years ago)
- Default Branch: 1.x
- Last Pushed: 2024-01-02T01:57:59.000Z (6 months ago)
- Last Synced: 2024-03-22T08:07:50.931Z (3 months 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
Lists
- awesome-php-zh_CN - print_o - 一个对象图的可视化器 (杂项 Miscellaneous)
- awesome-php-cn - 官网
- awesome-php - print_o - An object graph visualizer. (Miscellaneous)
- awesome-php-new - print_o - An object graph visualizer. (Configuration / Miscellaneous)
- awesome-php - print_o - An object graph visualizer. (Miscellaneous)
- awesome-php - print_o - An object graph visualizer. (Configuration / Miscellaneous)
- awesome-php - print_o - An object graph visualizer. (Configuration / Miscellaneous)
- PHP_awesome-directus-duh-REKT-iss- - print_o - An object graph visualizer. (Configuration / Miscellaneous)
- awesome-stripe - print_o - An object graph visualizer. (Configuration / Miscellaneous)
- awesome-php - print_o - An object graph visualizer. (Configuration / Miscellaneous)
- awesome-php-cn - 官网
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)