PHPackages                             mkomorowski/php-dot-get - 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. mkomorowski/php-dot-get

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

mkomorowski/php-dot-get
=======================

Array dot notation access

29PHP

Since Dec 9Pushed 10y ago2 watchersCompare

[ Source](https://github.com/mKomorowski/php-dot-get)[ Packagist](https://packagist.org/packages/mkomorowski/php-dot-get)[ RSS](/packages/mkomorowski-php-dot-get/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

php-dot-get
===========

[](#php-dot-get)

Array dot notation access

\##Installation

The package can be installed via Composer by adding to the `composer.json` require block.

```
{
    "require": {
        "mkomorowski/php-dot-get": "dev-master"
    }
}
```

Then update application packages by running the command:

```
php composer.phar install
```

\##Usage

```
$dot = new mKomorowski\Notation\Dot;
```

Get value from array

```
$array = array(
    'name' => 'Name',
    'firstname' => 'FirstName',
    'address' => array(
        'street' => '',
        'city' => 'Leeds'
    )
);

$dot->get($array, 'address.city'); // 'Leeds'
```

Tell if the value isset in array

```
$dot->exists($array, 'address.city'); // true
```

Set default value returned if given key is not found in array

```
$dot->get($array, 'address.country') // null

$dot->setDefault('undefined');

$dot->get($array, 'address.country') // 'undefined'
```

Compare requested value with given one

```
$dot->assert($array, 'name', 'Name') // true
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2849985c2d774ba1cfcd3d6cdab6a63ed99fd1325b1ff8d2d21dbaaa6a9cd283?d=identicon)[mKomorowski](/maintainers/mKomorowski)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/mkomorowski-php-dot-get/health.svg)

```
[![Health](https://phpackages.com/badges/mkomorowski-php-dot-get/health.svg)](https://phpackages.com/packages/mkomorowski-php-dot-get)
```

PHPackages © 2026

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