PHPackages                             quorum/dot-notation - 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. quorum/dot-notation

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

quorum/dot-notation
===================

Simple PHP Dot Notation Parser

v1.1.0(1y ago)349.6k↑41.4%[1 PRs](https://github.com/QuorumCollection/DotNotationParser/pulls)MITPHPPHP &gt;=7.1CI passing

Since Jan 27Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/QuorumCollection/DotNotationParser)[ Packagist](https://packagist.org/packages/quorum/dot-notation)[ RSS](/packages/quorum-dot-notation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

Dot Notation Parser
===================

[](#dot-notation-parser)

[![Latest Stable Version](https://camo.githubusercontent.com/4740785cef90171b7e98dbaddfb23022eb193f474deedf86c47bdf33e0c19298/68747470733a2f2f706f7365722e707567782e6f72672f71756f72756d2f646f742d6e6f746174696f6e2f76657273696f6e)](https://packagist.org/packages/quorum/dot-notation)[![Total Downloads](https://camo.githubusercontent.com/08c8b3f4e468d220ccc963e6b06ed4c14be9de6c16df027d2a5fc1a6cf33c6b9/68747470733a2f2f706f7365722e707567782e6f72672f71756f72756d2f646f742d6e6f746174696f6e2f646f776e6c6f616473)](https://packagist.org/packages/quorum/dot-notation)[![License](https://camo.githubusercontent.com/a0e419e95a0fc4db61a781f7aae92c7c647311cce7347df2bca824e18076e977/68747470733a2f2f706f7365722e707567782e6f72672f71756f72756d2f646f742d6e6f746174696f6e2f6c6963656e7365)](https://packagist.org/packages/quorum/dot-notation)[![ci.yml](https://github.com/QuorumCollection/DotNotationParser/actions/workflows/ci.yml/badge.svg)](https://github.com/QuorumCollection/DotNotationParser/actions/workflows/ci.yml)

DotNotationParser is a simple parser that will parse `foo.bar.baz` into `[ 'foo', 'bar', 'baz' ]` and `foo."bar.baz"` into `[ 'foo', 'bar.baz' ]`.

Requirements
------------

[](#requirements)

- **php**: &gt;=7.1

Installing
----------

[](#installing)

Install the latest version with:

```
composer require 'quorum/dot-notation'
```

Documentation
-------------

[](#documentation)

### Class: Quorum\\DotNotation\\DotNotationParser

[](#class-quorumdotnotationdotnotationparser)

Class DotPathParser

Parse strings like foo."bar.baz".quux into \[ 'foo', 'bar.baz', 'quux' \]

#### Method: DotNotationParser-&gt;parse

[](#method-dotnotationparser-parse)

```
function parse(string $path) : array
```

Parse a given dot notation path into it's parts

The path is expected to be a string of dot separated keys, where keys can be
quoted with double quotes. Backslashes are used to escape double quotes inside
quoted keys.

##### Examples

[](#examples)

- `'foo.bar.baz'` =&gt; `[ 'foo', 'bar', 'baz' ]`
- `'foo."bar.baz"'` =&gt; `[ 'foo', 'bar.baz' ]`
- `'foo."bar.baz".quux'` =&gt; `[ 'foo', 'bar.baz', 'quux' ]`
- `'foo."bar\"baz".quux'` =&gt; `[ 'foo', 'bar"baz', 'quux' ]`

**Throws**: `\Quorum\DotNotation\Exceptions\ParseException`

##### Returns:

[](#returns)

- ***string\[\]***

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance60

Regular maintenance activity

Popularity32

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.4% 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 ~951 days

Total

3

Last Release

401d ago

Major Versions

v0.0.1 → v1.0.02020-12-22

### Community

Maintainers

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

---

Top Contributors

[![donatj](https://avatars.githubusercontent.com/u/133747?v=4)](https://github.com/donatj "donatj (38 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/quorum-dot-notation/health.svg)

```
[![Health](https://phpackages.com/badges/quorum-dot-notation/health.svg)](https://phpackages.com/packages/quorum-dot-notation)
```

###  Alternatives

[crisu83/shortid

15125.2k6](/packages/crisu83-shortid)[mihaeu/html-formatter

HTML Formatter pritifies HTML content by applying proper intendation (no tidy, purification, etc.).

1770.8k4](/packages/mihaeu-html-formatter)

PHPackages © 2026

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