PHPackages                             alirezasalehizadeh/quick-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. alirezasalehizadeh/quick-array

ActiveLibrary

alirezasalehizadeh/quick-array
==============================

Simple PHP tool to quickly work with SplFixedArray.

v1.1.0(2y ago)012MITPHPPHP ^8.1

Since Mar 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/alirezasalehizadeh/QuickArray)[ Packagist](https://packagist.org/packages/alirezasalehizadeh/quick-array)[ RSS](/packages/alirezasalehizadeh-quick-array/feed)WikiDiscussions main Synced today

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

QuickArray
==========

[](#quickarray)

Work with SplFixedArray class quickly!

Features
--------

[](#features)

- Simple and Easy to use
- Due to the use of SplFixedArray, it is faster than normal array

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

[](#requirements)

PHP &gt;= 8.1

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

[](#installation)

via Composer:

```
composer require alirezasalehizadeh/quick-array

```

Usage
-----

[](#usage)

#### Methods Table:

[](#methods-table)

```
$arr = new QuickArray(5);

$arr->__construct(int $size)  // Constructs a new fixed array

$arr->size():int  // Returns the size of the array

$arr->current():mixed // Return current array entry

$arr->push($index, $value)  // Push new element to QuickArray

$arr->pushArray(array $array, bool $preserveKeys = true):(new SplFixedArray)  // Import a PHP array in a SplFixedArray instance

$arr->key():int // Return current array index

$arr->next():void  // Move to next entry

$arr->exists($index):bool // Returns whether the requested index exists

$arr->get($index) // Returns the value at the specified index

$arr->set($index, $value) // Sets a new value at a specified index

$arr->unset($index) // Unsets the value at the specified $index

$arr->rewind()  // Rewind iterator back to the start

$arr->resize(int $size):bool  // Change the size of an array

$arr->toArray() // Returns a PHP array from the fixed array

$arr->valid():bool // Check whether the array contains more elements

$arr->each($callback):array // Applies the callback to the elements of the array

$arr->__wakeup()  // Reinitialises the array after being unserialised
```

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

[](#contributing)

Send pull request or open issue for contributing.

License
-------

[](#license)

[MIT](LICENSE).

###  Health Score

24

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

2

Last Release

1055d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d2fea36dd7d7e08bb16f8800f37b9b56e69e0e5cc2749603c96efe6fb378cb1?d=identicon)[alirezasalehizadeh](/maintainers/alirezasalehizadeh)

---

Top Contributors

[![alirezasalehizadeh](https://avatars.githubusercontent.com/u/66994089?v=4)](https://github.com/alirezasalehizadeh "alirezasalehizadeh (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alirezasalehizadeh-quick-array/health.svg)

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

PHPackages © 2026

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