PHPackages                             dcwq/array-helper - 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. dcwq/array-helper

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

dcwq/array-helper
=================

Array Helper

v1.0(8y ago)018MITRubyPHP &gt;=5.6.0

Since Dec 6Pushed 8y ago1 watchersCompare

[ Source](https://github.com/dcwq/array-helper)[ Packagist](https://packagist.org/packages/dcwq/array-helper)[ RSS](/packages/dcwq-array-helper/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Array Helper
============

[](#array-helper)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4cb2c13c9d093f1c89f4fa6a59927fa50c2a7d9af09019412739c50e9b1dfab3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646377712f61727261792d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dcwq/array-helper)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/09cfaeea9f36286faad85a06b712e3250fc0da910e6588b15d27437744db913c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f646377712f61727261792d68656c7065722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/dcwq/array-helper)

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

[](#requirements)

Requires PHP version 5.6+

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

[](#installation)

This class can be used directly from a GIT clone:

```
git clone https://github.com/dcwq/array-helper.git
```

Composer Usage
--------------

[](#composer-usage)

After either installing Composer using one of the two methods shown at  the composer.json would look like:

```
require_once 'vendor/autoload.php';
```

Then you'll include the composer autoloader:

```
{
    "require": {
        "dcwq/array-helper": "dev-master"
    }
}
```

You can install this package via composer directly in CLI:

```
composer require dcwq/array-helper
```

Usage
-----

[](#usage)

User dcwq\\ArrayHelper namespace:

### ArrayHelper::flatten

[](#arrayhelperflatten)

*Flatten array of integer numbers*

```
use dcwq\ArrayHelper;

$flattenArray = ArrayHelper::flatten([1, [2, [3], 4], 5], 1);
```

Testing
-------

[](#testing)

You can run the tests with:

```
vendor/bin/phpunit
```

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

3083d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1bf8f1940e49bbb83e2a4161855e5a4e76efc4c10e9aa86e2cc86c0f5d3e937b?d=identicon)[dcwiklik](/maintainers/dcwiklik)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dcwq-array-helper/health.svg)

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

###  Alternatives

[apen/additional_reports

Useful information in the reports module : xclass, ajax, cliKeys, eID, general status of the system (encoding, DB, php vars...), hooks, compare local and TER extension (diff), used content type, used plugins, ExtDirect... It can really help you during migration or new existing project (to have a global reports of the system).

14157.8k](/packages/apen-additional-reports)

PHPackages © 2026

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