PHPackages                             ashvedov/array-flatten - 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. ashvedov/array-flatten

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

ashvedov/array-flatten
======================

array flatten

v1.0.4(3y ago)113PHP

Since Aug 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/DaaN88/php-array-flatten)[ Packagist](https://packagist.org/packages/ashvedov/array-flatten)[ RSS](/packages/ashvedov-array-flatten/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

### Descriptions

[](#descriptions)

The package allows you to convert a simple numbered array of any nesting to a simple one-dimensional (without nesting) array

### Getting started

[](#getting-started)

#### Requirements

[](#requirements)

- PHP 8.1
- Composer 2+

#### Installation

[](#installation)

```
composer require ashvedov/array-flatten

```

#### Usage

[](#usage)

Anywhere in your code, just include the class ArrFlatten in the use section and you're good to go.

#### Example

[](#example)

```
use Ashvedov\ArrayFlatten\ArrFlatten;
$test = new ArrFlatten(array: [[1, 2, [3, 5], [[4, 3], 4], 10], [1, 2, 3, 5, 4, 3, 4, 10]]);
var_dump($test->flattenArray());

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity51

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

Every ~0 days

Total

5

Last Release

1372d ago

Major Versions

v0.0.1 → v1.0.12022-08-14

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/ashvedov-array-flatten/health.svg)

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

###  Alternatives

[yangbx/captcha-lumen

captcha for lumen

123.8k](/packages/yangbx-captcha-lumen)

PHPackages © 2026

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