endroid/property-access 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

endroid/property-access

最新稳定版本:2.4.0

Composer 安装命令:

composer require endroid/property-access

包简介

Endroid Property Access

README 文档

README

By endroid

Latest Stable Version Build Status Total Downloads Monthly Downloads License

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

Use Composer to install the library.

$ composer require endroid/property-access

Usage

<?php

use Endroid\PropertyAccess\PropertyAccessor;

$accessor = new PropertyAccessor();

// Returns the first name of the first band member that lives on Abbey Road
$firstName = $accessor->getValue($band, 'member[address.street=Abbey Road][0].firstName');

Versioning

Version numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatibility breaking changes will be kept to a minimum but be aware that these can occur. Lock your dependencies for production and test your code when upgrading.

License

This bundle is under the MIT license. For the full copyright and license information please view the LICENSE file that was distributed with this source code.

统计信息

  • 总下载量: 139.32k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-19