PHPackages                             simones/dotnot - 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. simones/dotnot

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

simones/dotnot
==============

Access your data with dot notation. Array or objects: no matter what!

1.0.0(9y ago)21.6k↓50%PHPPHP &gt;=5.5.0

Since Sep 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/SimoneS93/DotNot)[ Packagist](https://packagist.org/packages/simones/dotnot)[ RSS](/packages/simones-dotnot/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/67c85cf74abf26f52d364cc130a563d688486096021b75334d78b0baf1e252d3/68747470733a2f2f7472617669732d63692e6f72672f53696d6f6e655339332f446f744e6f742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/SimoneS93/DotNot)

Access you data via dot-notation, no matter if it's an array, a stdClass or a custom object!

Install
-------

[](#install)

```
$ composer require simones/dotnot
```

Usage
-----

[](#usage)

Construct a `DotNot` instance with your data and access it with the `get` method: that's all! Your data can be composed of any combination of arrays, stdClass instances and custom classes' instances: they all behave the same. You can also use the `dotnot` helper function, which accepts a mandatory `$root` argument and an optional `$path` to resolve.

Here are some examples (for more, head to the spec):

```
// stdClass + array
dotnot((object) [
    'author' => [
        'name' => 'Simone Salerno'
    ]
])->get('author.name')

// Custom class, with getter method
class Author {
    public function getAuthorName() {
        return 'Simone Salerno';
    }
}

// this looks for a method named "get" . ucfirst($getter)
dotnot(new Author)->get('authorName')

// when it can't resolve the path, it throws an exception
// so you should catch it or test for existence
dotnot(new Author)->get('foo') // throws DotNotException
//or
$dotnot = dotnot(new Author);

if ($dotnot->has('foo')) {
    // do some work...
}

// it also works with numeric indexes
dotnot([
    'people' => [
        0 => (object) [
            'author' => new Author
        ]
    ]
])->get('people.0.author.authorName')
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3532d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/simones-dotnot/health.svg)

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

###  Alternatives

[hekmatinasser/verta

This Package helps developers to work with Jalali Datetime class for Laravel Framework PHP

657530.5k27](/packages/hekmatinasser-verta)[wgenial/numeroporextenso

Converte numeral em valor por extenso.

4666.9k](/packages/wgenial-numeroporextenso)[smile/module-custom-entity

Smile - Custom Entity Module

36104.1k5](/packages/smile-module-custom-entity)[icap/html-diff

A PHP5 library that diffs (compares) HTML files.

30117.7k4](/packages/icap-html-diff)[directorytree/anonymize

Anonymize sensitive model data with realistic fake data using Faker

1079.2k](/packages/directorytree-anonymize)

PHPackages © 2026

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