PHPackages                             endroid/property-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. endroid/property-access

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

endroid/property-access
=======================

Endroid Property Access

2.4.0(1y ago)7139.3k1MITPHPPHP ^8.2

Since Aug 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/endroid/property-access)[ Packagist](https://packagist.org/packages/endroid/property-access)[ Docs](https://github.com/endroid/property-access)[ GitHub Sponsors](https://github.com/endroid)[ RSS](/packages/endroid-property-access/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (30)Used By (1)

Property Access
===============

[](#property-access)

*By [endroid](https://endroid.nl/)*

[![Latest Stable Version](https://camo.githubusercontent.com/a5fb862f828048bc6df0f396811030690350071cc8d022cd3a5bd05b26249917/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656e64726f69642f70726f70657274792d6163636573732e737667)](https://packagist.org/packages/endroid/property-access)[![Build Status](https://github.com/endroid/property-access/workflows/CI/badge.svg)](https://github.com/endroid/property-access/actions)[![Total Downloads](https://camo.githubusercontent.com/4f820b00fd0262318d14622e8eceab36e88b38ec704a50f99f0ca7ebc5b7da75/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656e64726f69642f70726f70657274792d6163636573732e737667)](https://packagist.org/packages/endroid/property-access)[![Monthly Downloads](https://camo.githubusercontent.com/554b611015386d2ee6d8ef2b17b9e3505deaab455ab8f010b9eb502f91ecab06/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f656e64726f69642f70726f70657274792d6163636573732e737667)](https://packagist.org/packages/endroid/property-access)[![License](https://camo.githubusercontent.com/f92235d0315d62dde8716cd5347958e9ed54a028d46c9c48826b05b00a7ca31d/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f656e64726f69642f70726f70657274792d6163636573732e737667)](https://packagist.org/packages/endroid/property-access)

Extends the Symfony property accessor with the ability to filter on objects using the expression language component. An example of such a query would be band.member\[address.street=="Abbey Road"\].firstName. This functionality makes it easier to retrieve properties without the need for looping through values.

Great advantage of this approach is the possibility of specifying conditional mapping via configuration instead of code.

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

[](#installation)

Use [Composer](https://getcomposer.org/) to install the library.

```
$ composer require endroid/property-access
```

Usage
-----

[](#usage)

```
