PHPackages                             quorum/array-functions - 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. quorum/array-functions

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

quorum/array-functions
======================

useful array functions

v0.2.0(1mo ago)3101MITPHPPHP &gt;=7.2.0CI passing

Since Sep 26Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/QuorumCollection/ArrayFunctions)[ Packagist](https://packagist.org/packages/quorum/array-functions)[ RSS](/packages/quorum-array-functions/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (2)Versions (9)Used By (0)

Quorum Array Functions
======================

[](#quorum-array-functions)

[![Latest Stable Version](https://camo.githubusercontent.com/c9f0dac4af7ee03b3f9eb68271cd342c29abacde0959f1049726866afba74128/68747470733a2f2f706f7365722e707567782e6f72672f71756f72756d2f61727261792d66756e6374696f6e732f76657273696f6e)](https://packagist.org/packages/quorum/array-functions)[![License](https://camo.githubusercontent.com/30c91776d7dbead3c9ea7f97314fce1030e0d5164d6dbba6db7c1fb878aab0ac/68747470733a2f2f706f7365722e707567782e6f72672f71756f72756d2f61727261792d66756e6374696f6e732f6c6963656e7365)](https://packagist.org/packages/quorum/array-functions)[![ci.yml](https://github.com/QuorumCollection/ArrayFunctions/actions/workflows/ci.yml/badge.svg)](https://github.com/QuorumCollection/ArrayFunctions/actions/workflows/ci.yml)

A collection of global `array_*` functions appending to the native PHP set.

Requirements
------------

[](#requirements)

- **php**: &gt;=7.2.0

Installing
----------

[](#installing)

Install the latest version with:

```
composer require 'quorum/array-functions'
```

Array Functions
---------------

[](#array-functions)

### Function: \\array\_flatten

[](#function-array_flatten)

```
function array_flatten(array $array [, $allow_duplicates = false])
```

##### Parameters:

[](#parameters)

- ***array*** `$array` - The Array to be Flattened
- ***bool*** `$allow_duplicates` - Should the array allow duplicates

##### Returns:

[](#returns)

- ***array*** - The resulting array or NULL on failure

Given an array, find all the values recursively.

### Function: \\array\_blend

[](#function-array_blend)

```
function array_blend(array $arrays [, array $keys = null])
```

##### Parameters:

[](#parameters-1)

- ***array*** `$arrays` - An array of arrays.
- ***array*** | ***null*** `$keys` - The merged array.

##### Returns:

[](#returns-1)

- ***array*** - The resulting blended array

Given an array of arrays, merges the array's children together.

### Function: \\array\_key\_array

[](#function-array_key_array)

```
function array_key_array(array $arrays, $key)
```

##### Parameters:

[](#parameters-2)

- ***array*** `$arrays` - An array of similarly keyed arrays
- ***int*** | ***string*** `$key` - The desired key

##### Returns:

[](#returns-2)

- ***array*** - The flattened array

Given an array of similarly keyed arrays, returns an array of only the values of the key.

### Function: \\array\_keys\_array

[](#function-array_keys_array)

```
function array_keys_array(array $arrays, $keys)
```

##### Parameters:

[](#parameters-3)

- ***array*** `$arrays` - An array of similarly keyed arrays
- ***array*** | ***int*** | ***string*** `$keys` - The key or array of keys to return

##### Returns:

[](#returns-3)

- ***array*** - The array of arrays with just the selected keys

Given an array of similarly keyed arrays, returns an array of only the selected keys.

### Function: \\array\_key\_refill

[](#function-array_key_refill)

```
function array_key_refill(array $array, array $keys [, $fill = array()])
```

##### Parameters:

[](#parameters-4)

- ***array*** `$array` - A Keyed array
- ***array*** `$keys` - The keys that must exist
- ***mixed*** `$fill` - The desired value to fill with

##### Returns:

[](#returns-4)

- ***array***

Given a keyed array, fills any missing values.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance90

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1416 days

Total

4

Last Release

49d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.3.0

v0.2.0PHP &gt;=7.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/a57a02ba022451a54d4b65e227ce3d032cadc638a644c2d4b56f0313632ee656?d=identicon)[donatj](/maintainers/donatj)

![](https://www.gravatar.com/avatar/15bb251b7550dc9a7ee1a7642fd6c4534f72797a17b3c913e9a15a4462979612?d=identicon)[henderjon](/maintainers/henderjon)

![](https://www.gravatar.com/avatar/87d4befca0c61cbbeceb643038d809c659d3f13b34281dbf9456f712f6806f73?d=identicon)[oranj](/maintainers/oranj)

---

Top Contributors

[![donatj](https://avatars.githubusercontent.com/u/133747?v=4)](https://github.com/donatj "donatj (26 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/quorum-array-functions/health.svg)

```
[![Health](https://phpackages.com/badges/quorum-array-functions/health.svg)](https://phpackages.com/packages/quorum-array-functions)
```

###  Alternatives

[kcs/class-finder

Utility classes to help discover other classes/namespaces

311.8M17](/packages/kcs-class-finder)[trntv/probe

System information provider

34689.0k5](/packages/trntv-probe)[jimmerioles/bitcoin-currency-converter-php

A simple and lightweight bitcoin to currency converter and vice versa based on current exchange rates from your chosen provider: Coinbase, Coindesk, Bitpay and etc.

132.7k](/packages/jimmerioles-bitcoin-currency-converter-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
