2017 © Pedro Peláez
 

library object-graph

Provides useful operations on PHP object graphs

image

sebastian/object-graph

Provides useful operations on PHP object graphs

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 13 Forks
  • 0 Open issues
  • 4 Versions
  • 75 % Grown

The README.md

sebastian/object-graph

Minimum PHP Version Latest Stable Version CI Status Code Coverage, (*1)

Provides useful operations on PHP object graphs., (*2)

Installation

You can add this library as a local, per-project dependency to your project using Composer:, (*3)

composer require sebastian/object-graph

If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:, (*4)

composer require --dev sebastian/object-graph

Usage

Object Graph Visualization with GraphViz

<?php declare(strict_types=1);
use function SebastianBergmann\ObjectGraph\object_graph_dump;

$cart = new ShoppingCart;
$cart->add(new ShoppingCartItem('Foo', new Money(123, new Currency('EUR')), 1));
$cart->add(new ShoppingCartItem('Bar', new Money(456, new Currency('EUR')), 1));

object_graph_dump('graph.png', $cart);

Screenshot, (*5)

The object_graph_dump() function supports the DOT Graph Description Language (.dot), Portable Document Format (.pdf), Portable Network Graphics (.png), and Scalable Vector Graphics (.svg) output formats., (*6)

The generation of PDF, PNG, and SVG files requires the GraphViz dot binary to be on the $PATH., (*7)

The Versions

02/06 2018

dev-master

9999999-dev https://github.com/sebastianbergmann/object-graph/

Provides useful operations on PHP object graphs

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

27/11 2017

1.1.0

1.1.0.0 https://github.com/sebastianbergmann/object-graph/

Provides useful operations on PHP object graphs

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

18/10 2017

1.0.1

1.0.1.0 https://github.com/sebastianbergmann/object-graph/

Provides useful operations on PHP object graphs

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

15/10 2017

1.0.0

1.0.0.0 https://github.com/sebastianbergmann/object-graph/

Provides useful operations on PHP object graphs

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires