PHPackages                             sebastian/object-graph - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. sebastian/object-graph

ActiveLibrary[Testing &amp; Quality](/categories/testing)

sebastian/object-graph
======================

Provides useful operations on PHP object graphs

3.0.1(1y ago)45831.1k↓100%14[1 issues](https://github.com/sebastianbergmann/object-graph/issues)BSD-3-ClausePHPPHP &gt;=8.1CI passing

Since Oct 15Pushed 4mo ago20 watchersCompare

[ Source](https://github.com/sebastianbergmann/object-graph)[ Packagist](https://packagist.org/packages/sebastian/object-graph)[ Docs](https://github.com/sebastianbergmann/object-graph/)[ GitHub Sponsors](https://github.com/sebastianbergmann)[ RSS](/packages/sebastian-object-graph/feed)WikiDiscussions main Synced 2mo ago

READMEChangelog (1)Dependencies (2)Versions (7)Used By (0)

sebastian/object-graph
======================

[](#sebastianobject-graph)

[![Minimum PHP Version](https://camo.githubusercontent.com/f098b08766be7adb5845a082a23bf1e746e99460e572f6d85c57e0a4ecc1eaf8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e332d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)[![Latest Stable Version](https://camo.githubusercontent.com/c4d629ba199558bbff77de56f3e4bca407d13bed4aeb8a47eb47d8e29baea13d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73656261737469616e2f6f626a6563742d67726170682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sebastian/object-graph)[![CI Status](https://github.com/sebastianbergmann/object-graph/workflows/CI/badge.svg)](https://github.com/sebastianbergmann/object-graph/actions)[![Code Coverage](https://camo.githubusercontent.com/9033e7bd0c0edc04b61f25354d0184b5ea8affc6d21d9f9803bda124bcd031a8/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f73656261737469616e626572676d616e6e2f6f626a6563742d67726170682e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/sebastianbergmann/object-graph)

Provides useful operations on PHP object graphs.

Installation
------------

[](#installation)

You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):

```
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:

```
composer require --dev sebastian/object-graph

```

Usage
-----

[](#usage)

### Object Graph Visualization with GraphViz

[](#object-graph-visualization-with-graphviz)

```
