PHPackages                             qiuqiux/indexed-array - 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. qiuqiux/indexed-array

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

qiuqiux/indexed-array
=====================

Rewrite from SplFixedArray,it can use as the indexed array.

v1.0.1(10y ago)1146MITPHPPHP &gt;=5.3.0

Since Jun 7Pushed 8y ago1 watchersCompare

[ Source](https://github.com/qiuqiuX/IndexedArray)[ Packagist](https://packagist.org/packages/qiuqiux/indexed-array)[ RSS](/packages/qiuqiux-indexed-array/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

IndexArray
==========

[](#indexarray)

modify from SplFixedArray that can use as array.

#### Examples:

[](#examples)

```
$a = new IndexedArray();

$a[] = 'a';
$a[] = 'b';
$a[] = 'b';
$a->pop();
$a->shift();
foreach ($a as $val) {
    echo $val;
}

echo count($a);      // 1

$a[] = 'd';         // $a[1] = 'd';

```

---

```
$indexedArray1 = new IndexedArray();
$indexedArray2 = new IndexedArray();
$max = 1000000;
for ($i = 0; $i < $max; ++$i) {
    $indexedArray1[] = $i;
    $indexedArray2[] = $max + $i;
}

echo $indexedArray1->merge($indexedArray2)->getSize();

```

### API

[](#api)

- createFormArray
- createFromFixedArray
- pop
- push
- shift
- unshift
- unique
- last
- search
- transform
- reverse
- merge
- getSize
- toJson
- toArray

###  Health Score

28

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

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 ~28 days

Total

2

Last Release

3685d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6559734?v=4)[qiuqiu](/maintainers/qiuqiuX)[@qiuqiuX](https://github.com/qiuqiuX)

---

Top Contributors

[![qiuqiuX](https://avatars.githubusercontent.com/u/6559734?v=4)](https://github.com/qiuqiuX "qiuqiuX (11 commits)")

---

Tags

arraysplfixedarrayindexed arrayIndexArray

### Embed Badge

![Health badge](/badges/qiuqiux-indexed-array/health.svg)

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

###  Alternatives

[doctrine/collections

PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.

6.0k437.1M1.5k](/packages/doctrine-collections)[symfony/property-access

Provides functions to read and write from/to an object or array using a simple string notation

2.8k325.8M3.4k](/packages/symfony-property-access)[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k443.7M1.8k](/packages/nette-utils)[league/config

Define configuration arrays with strict schemas and access values with dot notation

567347.0M41](/packages/league-config)[cuyz/valinor

Dependency free PHP library that helps to map any input into a strongly-typed structure.

1.5k14.6M194](/packages/cuyz-valinor)[openlss/lib-array2xml

Array2XML conversion library credit to lalit.org

30954.2M54](/packages/openlss-lib-array2xml)

PHPackages © 2026

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