{"id":13828511,"url":"https://github.com/sebastianbergmann/object-graph","last_synced_at":"2025-10-05T09:40:49.347Z","repository":{"id":59499301,"uuid":"85086444","full_name":"sebastianbergmann/object-graph","owner":"sebastianbergmann","description":"Provides useful operations on PHP object graphs","archived":false,"fork":false,"pushed_at":"2025-04-13T07:27:35.000Z","size":25032,"stargazers_count":456,"open_issues_count":1,"forks_count":14,"subscribers_count":21,"default_branch":"main","last_synced_at":"2025-04-13T16:08:10.564Z","etag":null,"topics":["object","php","visualization"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sebastianbergmann.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"sebastianbergmann"}},"created_at":"2017-03-15T15:04:36.000Z","updated_at":"2025-04-13T07:27:39.000Z","dependencies_parsed_at":"2023-12-24T10:23:06.256Z","dependency_job_id":"21d07be2-28b3-445c-9a25-e9ad8e3f47c4","html_url":"https://github.com/sebastianbergmann/object-graph","commit_stats":{"total_commits":153,"total_committers":3,"mean_commits":51.0,"dds":0.04575163398692805,"last_synced_commit":"d9a090f78e59565800835d17a9a7c849f06530d9"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianbergmann%2Fobject-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianbergmann%2Fobject-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianbergmann%2Fobject-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianbergmann%2Fobject-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebastianbergmann","download_url":"https://codeload.github.com/sebastianbergmann/object-graph/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741206,"owners_count":21154255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["object","php","visualization"],"created_at":"2024-08-04T09:02:49.980Z","updated_at":"2025-10-05T09:40:44.288Z","avatar_url":"https://github.com/sebastianbergmann.png","language":"PHP","funding_links":["https://github.com/sponsors/sebastianbergmann"],"categories":["PHP"],"sub_categories":[],"readme":"# sebastian/object-graph\n\n[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%208.3-8892BF.svg?style=flat-square)](https://php.net/)\n[![Latest Stable Version](https://img.shields.io/packagist/v/sebastian/object-graph.svg?style=flat-square)](https://packagist.org/packages/sebastian/object-graph)\n[![CI Status](https://github.com/sebastianbergmann/object-graph/workflows/CI/badge.svg)](https://github.com/sebastianbergmann/object-graph/actions)\n[![Code Coverage](https://img.shields.io/codecov/c/github/sebastianbergmann/object-graph.svg?style=flat-square)](https://codecov.io/gh/sebastianbergmann/object-graph)\n\nProvides useful operations on PHP object graphs.\n\n## Installation\n\nYou can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):\n\n```\ncomposer require sebastian/object-graph\n```\n\nIf 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:\n\n```\ncomposer require --dev sebastian/object-graph\n```\n\n## Usage\n\n### Object Graph Visualization with GraphViz\n\n```php\n\u003c?php declare(strict_types=1);\nuse function SebastianBergmann\\ObjectGraph\\object_graph_dump;\n\n$cart = new ShoppingCart;\n$cart-\u003eadd(new ShoppingCartItem('Foo', new Money(123, new Currency('EUR')), 1));\n$cart-\u003eadd(new ShoppingCartItem('Bar', new Money(456, new Currency('EUR')), 1));\n\nobject_graph_dump('graph.png', $cart);\n```\n\n![Screenshot](example/example.svg)\n\nThe `object_graph_dump()` function supports the [DOT Graph Description Language](https://en.wikipedia.org/wiki/DOT_(graph_description_language)) (`.dot`), [Portable Document Format](https://en.wikipedia.org/wiki/Portable_Document_Format) (`.pdf`), [Portable Network Graphics](https://en.wikipedia.org/wiki/Portable_Network_Graphics) (`.png`), and [Scalable Vector Graphics](https://en.wikipedia.org/wiki/Scalable_Vector_Graphics) (`.svg`) output formats.\n\nThe generation of PDF, PNG, and SVG files requires the [GraphViz](http://www.graphviz.org/) `dot` binary to be on the `$PATH`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianbergmann%2Fobject-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastianbergmann%2Fobject-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianbergmann%2Fobject-graph/lists"}