PHPackages                             ntlab/php-obj - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. ntlab/php-obj

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

ntlab/php-obj
=============

A PHP object representation as string, javascript, annotation, or YAML

v1.9.0(8mo ago)02.3k↓50%5MITPHPPHP &gt;=7.4CI passing

Since Sep 21Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/tohenk/php-obj)[ Packagist](https://packagist.org/packages/ntlab/php-obj)[ Docs](https://github.com/tohenk/php-obj)[ RSS](/packages/ntlab-php-obj/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (17)Used By (5)

A PHP Object Representation
===========================

[](#a-php-object-representation)

[![Build Status](https://github.com/tohenk/php-obj/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/tohenk/php-obj/actions/workflows/continuous-integration.yml/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/cbb12cb0391110919ffac415b7739063ec3f439253593cd1c5966c30a4a0a4d0/68747470733a2f2f706f7365722e707567782e6f72672f6e746c61622f7068702d6f626a2f762f737461626c652e737667)](https://packagist.org/packages/ntlab/php-obj)[![Total Downloads](https://camo.githubusercontent.com/cbfc066d025ab5236c332cdd43e5c208f003ac0cfbc447d2795fae364993a53d/68747470733a2f2f706f7365722e707567782e6f72672f6e746c61622f7068702d6f626a2f646f776e6c6f6164732e737667)](https://packagist.org/packages/ntlab/php-obj)[![License](https://camo.githubusercontent.com/0127e7d8cce1460b45faa7b97e34c95b5d91f882fe2a2556ba478667628c4bf9/68747470733a2f2f706f7365722e707567782e6f72672f6e746c61622f7068702d6f626a2f6c6963656e73652e737667)](https://packagist.org/packages/ntlab/php-obj)

Represent PHP object as string, javascript, annotation, or YAML.

Examples
--------

[](#examples)

- Represent PHP object as string

    ```
