PHPackages                             webiik/arr - 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. webiik/arr

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

webiik/arr
==========

The Arr provides dot notation for PHP arrays.

1.0(7y ago)1742MITPHPPHP &gt;=7.2

Since Feb 28Pushed 7y ago2 watchersCompare

[ Source](https://github.com/webiik/arr)[ Packagist](https://packagist.org/packages/webiik/arr)[ Docs](https://www.webiik.com)[ RSS](/packages/webiik-arr/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (2)Used By (2)

[![](https://camo.githubusercontent.com/a397347ee4fb199934fee6354504f4702b89f5c22f0ce0ba94c5ff691cde545c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f77656269696b2f77656269696b2e737667)](https://camo.githubusercontent.com/a397347ee4fb199934fee6354504f4702b89f5c22f0ce0ba94c5ff691cde545c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f77656269696b2f77656269696b2e737667)[![](https://camo.githubusercontent.com/20f4b99a958aadb02ff273ac6428c17cf55c6b817657ed64b1c39c7f71955a0e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646570656e64656e636965732d302d627269676874677265656e2e737667)](https://camo.githubusercontent.com/20f4b99a958aadb02ff273ac6428c17cf55c6b817657ed64b1c39c7f71955a0e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646570656e64656e636965732d302d627269676874677265656e2e737667)

Arr
===

[](#arr)

The Arr provides dot notation for PHP arrays.

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

[](#installation)

```
composer require webiik/arr
```

Example
-------

[](#example)

```
$array = [];
$arr = new \Webiik\Arr\Arr();
$arr->set('dot.notation.key', ['key' => 'val'], $array);
```

Adding
------

[](#adding)

### set

[](#set)

```
set(string $key, $val, array &$array): void
```

**set()** sets value **$val** to **$array** under (dot notation) **$key**.

```
$arr->set('dot.notation.key', ['key' => 'val'], $array);
```

### add

[](#add)

```
add(string $key, $val, array &$array): void
```

**add()** ads value **$val** to **$array** under (dot notation) **$key**.

```
$arr->add('dot.notation.key', 'val', $array);
```

Check
-----

[](#check)

### isIn

[](#isin)

```
isIn(string $key, array $array): bool
```

**isIn()** determines if **$key** is set in array and if its value is not **NULL**.

```
$arr->isIn('dot.notation.key', $array)
```

Getting
-------

[](#getting)

### get

[](#get)

```
get(string $key, array $array)
```

**get()** gets value from **$array** by (dot notation) **$key**.

```
$arr->get('dot.notation.key', $array)
```

Deletion
--------

[](#deletion)

### delete

[](#delete)

```
delete(string $key, array &$array): void
```

**delete()** removes value from **$array** by (dot notation) **$key**.

```
$arr->delete('dot.notation.test', $array);
```

Resources
---------

[](#resources)

- [Webiik framework](https://github.com/webiik/webiik)
- [Report issue](https://github.com/webiik/components/issues)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

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

Unknown

Total

1

Last Release

2633d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1226362d003d186b45e7dfa44489c36af37196c6a1b476206700eaf4e9c96a5a?d=identicon)[Jiri Mihal](/maintainers/Jiri%20Mihal)

---

Top Contributors

[![Jiri-Mihal](https://avatars.githubusercontent.com/u/10408123?v=4)](https://github.com/Jiri-Mihal "Jiri-Mihal (110 commits)")

---

Tags

arraydotnotation

### Embed Badge

![Health badge](/badges/webiik-arr/health.svg)

```
[![Health](https://phpackages.com/badges/webiik-arr/health.svg)](https://phpackages.com/packages/webiik-arr)
```

###  Alternatives

[doctrine/collections

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

6.0k411.1M1.2k](/packages/doctrine-collections)[dflydev/dot-access-data

Given a deep data structure, access data by dot notation.

718359.1M86](/packages/dflydev-dot-access-data)[league/config

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

564302.2M24](/packages/league-config)[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)[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.1k394.3M1.5k](/packages/nette-utils)[cuyz/valinor

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

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

PHPackages © 2026

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