PHPackages                             krzysztofzylka/arrays - 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. krzysztofzylka/arrays

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

krzysztofzylka/arrays
=====================

Array library

1.0.2(1y ago)01.6k↓34.6%2MITPHPPHP &gt;=7.4

Since Dec 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/krzysztofzylka/arrays)[ Packagist](https://packagist.org/packages/krzysztofzylka/arrays)[ RSS](/packages/krzysztofzylka-arrays/feed)WikiDiscussions main Synced 1mo ago

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

Install
=======

[](#install)

```
composer require krzysztofzylka/arrays
```

Methods
=======

[](#methods)

Escape array values
-------------------

[](#escape-array-values)

```
\Krzysztofzylka\Arrays\Arrays::escape($array)
```

Html special chars array values
-------------------------------

[](#html-special-chars-array-values)

```
\Krzysztofzylka\Arrays\Arrays::htmlSpecialChars($array)
```

Trim values
-----------

[](#trim-values)

```
\Krzysztofzylka\Arrays\Arrays::trim($array)
```

Get value from an array using a dot-separated string as the key
---------------------------------------------------------------

[](#get-value-from-an-array-using-a-dot-separated-string-as-the-key)

```
\Krzysztofzylka\Arrays\Arrays::getFromArrayUsingString($string, $array)
```

Merge recursive distinct array
------------------------------

[](#merge-recursive-distinct-array)

```
\Krzysztofzylka\Arrays\Arrays::mergeRecursiveDistinct($array1, $array2)
```

In array keys
-------------

[](#in-array-keys)

```
\Krzysztofzylka\Arrays\Arrays::inArrayKeys($keyValue, $array)
```

Reduce array
------------

[](#reduce-array)

```
\Krzysztofzylka\Arrays\Arrays::reduction($array)
```

Get nested value
----------------

[](#get-nested-value)

```
\Krzysztofzylka\Arrays\Arrays::getNestedValue($array, $keys)
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity44

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

Total

3

Last Release

704d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/krzysztofzylka-arrays/health.svg)

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

PHPackages © 2026

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