spatie/array-functions
Handy PHP array utilities from Spatie. Adds small, focused functions in the Spatie namespace (e.g., array_rand_value to pick a random value) to complement built-in array helpers. Install via Composer and use directly in your code.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/image | 0.90 | spatie/image provides an expressive, chainable PHP API for common image manipulation. Resize to fit a bounding box without altering aspect ratio, apply greyscale, adjust brightness and quality, rotate, sharpen, and save or overwrite images in just a few lines. Ideal for Laravel and PHP apps. | 1,367 | 1,389 | 143 | 4M | 0 | 40.9 | 56.6 | MIT | 3 days ago | |
| spatie/value-object | 0.89 | Deprecated Spatie package for PHP 8+ data transfer objects. Create typed DTOs from arrays with casting, validation, and attribute mapping (e.g., nested keys). Consider migrating to spatie/laravel-data or cuyz/valinor. | 2,221 | 2,223 | 187 | 0 | 0 | 12.9 | — | MIT | 4 years ago | |
| minwork/array | 0.88 | Minwork Array provides fast, well-tested helpers for nested, associative, and object arrays. Get/set/has plus map, filter, find, group, sort, and validation, with fluent-style chaining. No dependencies; modern PHP syntax. | 63 | 66 | 12 | 7K | 1 | 5.4 | 27.8 | MIT | 6 years ago | |
| spatie/array-to-xml | 0.88 | Simple PHP utility to convert arrays into XML strings. Supports custom root element names and configurable key handling (e.g., converting spaces to underscores). Ideal for quickly generating XML output from structured array data. | 1,199 | 1,226 | 214 | 3M | 0 | 23.6 | 48.4 | MIT | 10 months ago | |
| spatie/once | 0.87 | A tiny PHP helper to run code only once per request. Cache expensive computations or object initialization in a single spot, keyed automatically by the call site. Great for computed properties, accessors, and avoiding duplicate work. | 1,443 | 1,450 | 62 | 328K | 0 | 33.8 | 38.0 | MIT | 2 weeks ago | |
| avris/bag | 0.86 | avris/bag is a small Laravel/PHP utility package providing a “bag” style container for working with grouped values and simple data access. Handy for passing around structured payloads, storing arbitrary attributes, and keeping collections of data lightweight. | 0 | 1 | — | 21 | — | 0.0 | 18.5 | — | — | |
| spatie/string | 0.86 | spatie/string is a PHP package for fluent, chainable string handling. Wrap any native string with the string() helper, then chain methods like between, toUpper, and toLower, or use array-style offsets to read and modify individual characters easily. | 559 | 570 | 26 | 20K | 0 | 19.3 | 23.3 | MIT | 6 months ago | |
| mauretto78/array-query | 0.86 | Array Query is a PHP library that lets you query arrays using SQL-like syntax: select, where, order by, group by, limit and joins, with support for nested keys and custom operators. It brings database-style filtering and sorting to plain arrays, making complex data manipulation readable and testable... | 12 | — | 4 | — | 0 | 0.2 | — | MIT | 7 years ago |
|
| flow-php/array-dot | 0.85 | Flow PHP Array Dot adds easy dot-notation access to PHP arrays. Read, set, and manipulate deeply nested values with a clean API—ideal for config data, decoded JSON, and complex structures—making array handling clearer and less error-prone. | 13 | 14 | 5 | 45K | 0 | 0.2 | 48.4 | MIT | — | |
| bentools/iterable-functions | 0.85 | Small PHP utility package offering array-like helpers for any iterable (arrays, Traversable, generators): iterable_to_array/to_traversable, map, merge, reduce, filter, values, and chunk—write iterable-agnostic code without TypeError surprises. | 23 | 23 | 4 | 12K | 0 | 4.8 | 37.5 | MIT | 2 years ago | |
| petrobolos/fixed-array-functions | 0.85 | Fixed Array Functions offers reliable, predictable replacements for common PHP array helpers, helping Laravel and PHP developers avoid edge-case bugs and inconsistent built-in behavior when searching, filtering, mapping, and manipulating arrays with safer key and value handling. | 0 | — | 0 | — | 0 | 8.2 | — | MIT | 7 months ago | |
| phpcollection/phpcollection | 0.85 | PHP Collection provides a flexible, object-oriented collection library for PHP. It offers common collection types and utilities to manage groups of objects consistently, with a clean API and solid documentation. Ideal for domains needing reusable collection abstractions. | 960 | 996 | 49 | 222K | 9 | 10.3 | 36.1 | Apache-2.0 | 4 years ago | |
| voku/arrayy | 0.85 | — | 489 | 492 | 33 | 99K | 3 | 4.4 | 33.3 | MIT | — | |
| alexeyshockov/colada | 0.85 | — | 31 | 32 | 6 | 0 | 0 | 0.2 | — | MIT | — | |
| spatie/or-else | 0.85 | Adds an OrElse trait that auto-creates “*OrElse” method variants for your class methods. These variants accept a fallback value that’s returned whenever the original method returns null or false, helping you avoid repetitive default-handling code. | 32 | 34 | 4 | 17 | 0 | 0.9 | 2.5 | MIT | 11 years ago | |
| cscfa_tool_division/collections | 0.85 | — | 0 | 1 | 0 | 2 | 0 | 0.6 | 6.6 | MIT | 9 years ago | |
| codeliner/array-reader | 0.85 | Read values from multidimensional PHP arrays using dot-paths with escaping for dotted keys. Typed getters like stringValue() accept defaults when paths are missing, and pathExists() lets you distinguish null values from non-existent paths. | 19 | 21 | 5 | 10K | 0 | 1.7 | 37.1 | BSD-3-Clause | 7 years ago | |
| spatie/typed | 0.84 | Userland improved PHP type system with type inference and runtime checking: generics, union types, typed collections/lists, tuples, and structs. Proof-of-concept package from Spatie to add stronger type guarantees without language-level support. | 316 | 317 | 15 | 18 | 0 | 1.9 | 0.2 | MIT | 5 years ago | |
| transprime-research/arrayed | 0.84 | Arrayed brings fluent, chainable array helpers to Laravel and PHP, making it simple to filter, map, group, sort, and transform nested data with clean, readable syntax. A lightweight toolkit for everyday array manipulation without boilerplate. | 22 | 22 | 1 | 10 | 2 | 0.8 | 2.2 | MIT | 2 years ago | |
| rikudou/array-merge-recursive | 0.84 | A lightweight PHP utility for recursively merging arrays with predictable results. It combines nested structures while letting later values take precedence, making it useful for configs, defaults, and deep data composition. Framework-agnostic and easy to use. | 7 | 7 | 0 | 2K | 0 | 0.0 | 32.7 | WTFPL | 5 years ago |
How can I help you explore Laravel packages today?