Download the PHP package harp-orm/util without Composer
On this page you can find all versions of the php package harp-orm/util. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download harp-orm/util
More information about harp-orm/util
Files in harp-orm/util
Download harp-orm/util
More information about harp-orm/util
Files in harp-orm/util
Please rate this library. Is it a good library?
Informations about the package util
Util
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.
All versions of util with dependencies
PHP Build Version
Package Version
No informations.
The package harp-orm/util contains the following files
Loading the files please wait ...



