PHPackages                             ama-team/tree-access - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ama-team/tree-access

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ama-team/tree-access
====================

Symfony-Property-Access-like tree manipulation helper

0.1.1(8y ago)017MITPHPPHP &gt;= 5.6

Since Jan 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ama-team/php-tree-access)[ Packagist](https://packagist.org/packages/ama-team/tree-access)[ RSS](/packages/ama-team-tree-access/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (6)Versions (5)Used By (0)

AmaTeam\\TreeAccess
===================

[](#amateamtreeaccess)

[![Packagist](https://camo.githubusercontent.com/53abc82ab9c98758d6481ef692846d12ac7e842ad267d19ac57db90514771947/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616d612d7465616d2f747265652d6163636573732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ama-team/tree-access)[![CircleCI/master](https://camo.githubusercontent.com/5aa6abb57363899ff21a57fdfc052b2b97654e68210eb59ee187501db3bbe458/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f70726f6a6563742f6769746875622f616d612d7465616d2f7068702d747265652d6163636573732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://circleci.com/gh/ama-team/php-tree-access/tree/master)[![Coveralls/master](https://camo.githubusercontent.com/d35523bfde56f56ecc43a3b05688be1d1ff1d0f3a5c3bfddf584bd33e92b5978/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6769746875622f616d612d7465616d2f7068702d747265652d6163636573732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/ama-team/php-tree-access?branch=master)[![Scrutinizer/master](https://camo.githubusercontent.com/0736e3b9dadb8a7df246fc539c1cc0d5272b514b42e9648a7454185580939a9a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f616d612d7465616d2f7068702d747265652d6163636573732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ama-team/php-tree-access?branch=master)

This tiny project allows to read, enumerate and write properties / elements in a nested tree consisting of arrays and objects.

It is very close to symfony/property-access, but have two differences:

- This library treats array elements and object properties the same way, providing a unified tree access. This may be both desirable and not, depending on real application, so property-access may be more useful for you.
- This library allows to enumerate properties of a specific node.

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

[](#installation)

```
composer require ama-team/tree-access
```

Usage
-----

[](#usage)

```
