PHPackages                             sfneal/array-helpers - 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. sfneal/array-helpers

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

sfneal/array-helpers
====================

Array helpers for PHP applications

3.3.1(4y ago)0150.3k4MITPHPPHP &gt;=7.1

Since Sep 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sfneal/array-helpers)[ Packagist](https://packagist.org/packages/sfneal/array-helpers)[ Docs](https://github.com/sfneal/array-helpers)[ RSS](/packages/sfneal-array-helpers/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (26)Used By (4)

PHP Array Helpers
=================

[](#php-array-helpers)

[![Packagist PHP support](https://camo.githubusercontent.com/73320cec35dde64f4f586dc5ec8799dce02abd49341f450a3d6e46b64a1faca5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73666e65616c2f61727261792d68656c70657273)](https://packagist.org/packages/sfneal/array-helpers)[![Latest Version on Packagist](https://camo.githubusercontent.com/1f5973c0dff29e33e449ec2d249cf17e14513a7679d86ae34f4c06bb7e691bfe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73666e65616c2f61727261792d68656c706572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sfneal/array-helpers)[![Build Status](https://camo.githubusercontent.com/4339ece42d5e948903fca4fa76bef1e2494a4f2c89b8a357776fca00f88dea82/68747470733a2f2f7472617669732d63692e636f6d2f73666e65616c2f61727261792d68656c706572732e7376673f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://travis-ci.com/sfneal/array-helpers)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8621e88c28f105b12d541e039f55e4f3049da41dc0d2207e71b887c77cf6c7f2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73666e65616c2f61727261792d68656c706572732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sfneal/array-helpers/?branch=master)[![StyleCI](https://camo.githubusercontent.com/de89cd89336ef32808e7864c2a3da073a95736403c2393f4e07a2552c26884cc/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3239343231303731362f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/294210716?branch=master)[![Total Downloads](https://camo.githubusercontent.com/cc4957fb5bcc05dc6e93513d025c30489298aea10b2589a7678c5afce41bbafd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73666e65616c2f61727261792d68656c706572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sfneal/array-helpers)

Array helpers for PHP applications.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require sfneal/array-helpers
```

In order to autoload to the helper functions add the following path to the autoload.files section in your composer.json.

```
"autoload": {
    "files": [
        "vendor/sfneal/array-helpers/src/arrays.php"
    ]
},
```

Usage
-----

[](#usage)

Here's an example use of the arrayRemoveKeys method.

```
$array = ['red' => 36, 'black' => 88, 'white' => 72];

// Remove a key from the array
use Sfneal\Helpers\Arrays\ArrayHelpers;
(new ArrayHelpers($array))->arrayRemoveKeys('red');
>>> ['black' => 88, 'white' => 72,];
```

### Testing

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Stephen Neal](https://github.com/sfneal)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

PHP Package Boilerplate
-----------------------

[](#php-package-boilerplate)

This package was generated using the [PHP Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~14 days

Recently: every ~3 days

Total

24

Last Release

1736d ago

Major Versions

0.3.2 → 1.0.02021-01-21

1.6.0 → 2.0.02021-08-03

2.0.0 → 3.0.02021-08-04

PHP version history (6 changes)0.1.0PHP ^7.1

0.2.0PHP &gt;=7.0

0.2.1PHP &gt;=5.3

0.2.2PHP &gt;=5.5

0.3.0PHP &gt;=5.6

1.4.0PHP &gt;=7.1

### Community

Maintainers

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

---

Top Contributors

[![sfneal](https://avatars.githubusercontent.com/u/23200215?v=4)](https://github.com/sfneal "sfneal (213 commits)")

---

Tags

array helperssfneal

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sfneal-array-helpers/health.svg)

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

###  Alternatives

[antoineaugusti/easyphpcharts

A PHP class for chartjs.org charts.

252.8k](/packages/antoineaugusti-easyphpcharts)

PHPackages © 2026

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