定制 harp-orm/util 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

harp-orm/util

Composer 安装命令:

composer require harp-orm/util

包简介

General purpose helper methods

README 文档

README

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version

General purpose helper methods

Array Helpers

  • Arr::toAssoc - convert a random array to a strict structure - every entry has a string key
  • Arr::invoke - if the array holds only objects, aggregate the results of a method call on all the objects
  • Arr::pluckProperty - aggregate the value of a property of each object in the array
  • Arr::pluckUniqueProperty - aggregate the value of a property of each object in the array, only unique values
  • Arr::pluck - aggregate all the values of entries with a given key
  • Arr::flatten - flatten all the values of nested arrays
  • Arr::groupBy - group by result of callback

SplObjectStorage Helpers

  • Objects::invoke - aggregate the results of a method call on all the objects
  • Objects::filter - similar to array_filter, but for SplObjectStorage
  • Objects::toArray - convert SplObjectStorage into an array
  • Objects::fromArray - convert an array into a SplObjectStorage
  • Objects::sort - sort a SplObjectStorage using a comparation closure
  • Objects::groupBy - change SplObjectStorage where the "key" object is the result of a callback, and all the other objects are grouped by them

License

Copyright (c) 2014, Clippings Ltd. Developed by Ivan Kerin

Under BSD-3-Clause license, read LICENSE file.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-05-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固