PHPackages                             xethron/extended-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. xethron/extended-array

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

xethron/extended-array
======================

Extended Array gives PHP arrays new life

v1.0.0(11y ago)105.2k1[1 PRs](https://github.com/Xethron/extended-array/pulls)MITPHP

Since Jul 31Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Xethron/extended-array)[ Packagist](https://packagist.org/packages/xethron/extended-array)[ Docs](http://github.com/Xethron/extended-array)[ RSS](/packages/xethron-extended-array/feed)WikiDiscussions master Synced 1w ago

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

PHP Extended Arrays
===================

[](#php-extended-arrays)

Install
-------

[](#install)

Edit your composer.json file to require `xethron/extended-array` and run `composer update`

```
"require": {
    "xethron/extended-array": "dev-master"
}
```

Usage
-----

[](#usage)

```
// Create a blank extended array
$array = new Xethron\ExtendedArray;

// Create a new extended array from an existing array
$array = new Xethron\ExtendedArray($array);

// Accessing Data
$value = $array['key'];
$value = $array->key;
$value = $array->get('key', 'Default Value');

// Setting Data
$array['key'] = 'value';
$array->key = 'value';
$array->set('key', 'value');

// Checking if a key exists
$bool = isset($array['key']);
$bool = isset($array->key);
$bool = $array->has('key');

// Unset a value
unset($array['key']);
unset($array->key);
$array->forget('key');

// Get the actual array
$value = $array->getArray();

// Check if the array contains a list of keys
$bool = $array->hasAll(['key1', 'key2', 'key3']);

// Check if the array contains one of the following keys
$bool = $array->hasOne(['key1', 'key2', 'key3']);

// Add a key only if it doesn't exist
$array->add('key', 'value');

// Split an array into two arrays. One with keys and the other with values.
list($keys, $values) = $array->split();
```

Contributors
------------

[](#contributors)

Bernhard Breytenbach ([@BBreyten](https://twitter.com/BBreyten))

This library is based on ideas and code from the Laravel Framework.

License
-------

[](#license)

Extended Array is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

4309d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

arrayobjectextended

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/xethron-extended-array/health.svg)

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

###  Alternatives

[symfony/property-access

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

2.8k295.3M2.5k](/packages/symfony-property-access)[cuyz/valinor

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

1.5k9.2M108](/packages/cuyz-valinor)[jasny/dotkey

Dot notation access for objects and arrays

14219.5k6](/packages/jasny-dotkey)[michaldudek/foundation

A set of useful PHP classes.

13111.9k13](/packages/michaldudek-foundation)[peridot-php/object-path

A string syntax to fetch values from array and object hierarchies

1053.6k1](/packages/peridot-php-object-path)

PHPackages © 2026

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