PHPackages                             smidswater/abos - 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. smidswater/abos

ActiveLibrary

smidswater/abos
===============

A Better Object Syntax

0.0.3(7y ago)010MITPHP

Since Jun 26Pushed 7y ago2 watchersCompare

[ Source](https://github.com/smidswater/abos-php)[ Packagist](https://packagist.org/packages/smidswater/abos)[ RSS](/packages/smidswater-abos/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

ABOS-PHP
========

[](#abos-php)

A better object syntax, JSON and PHP Array

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

[](#installation)

### Composer

[](#composer)

```
composer require smidswater/abos
```

API
---

[](#api)

```
\Smidswater\ABOS::decode(/* JSON HERE */); //eg. file.json or "{stringified json}" or array
```

What does it solve?
-------------------

[](#what-does-it-solve)

With this module your json / array becomes self-conscious so you can use @top (Root of JSON), @parent (Parent of current scope) or @this (Current scope).

### Demo

[](#demo)

```
var_dump(ABOS::decode([
    'jsonItem1' => 'Hello',
    'jsonItem2' => [
        'jsonItem3' => '${@top.jsonItem1} W',
        'jsonItem4' => '${@this.jsonItem3}or'
    ],
    'jsonItem3' => [
        'jsonItem5' => '${@this.jsonItem4}',
        'jsonItem4' => '${@parent.jsonItem2.jsonItem4}ld'
    ]
]));
```

Resolves to

```
{
    "jsonItem1": "Hello",
    "jsonItem2": {
        "jsonItem3": "Hello W",
        "jsonItem4": "Hello Wor"
    },
    "jsonItem3": {
        "jsonItem5": "Hello World",
        "jsonItem4": "Hello World"
    }
}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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

2874d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/25fbd54bcf9efa660a7e2c1ad850d1334b62ed3803366ae0824acae1d2e3e2a3?d=identicon)[dominicvonk](/maintainers/dominicvonk)

![](https://www.gravatar.com/avatar/7c575c1e9fa84e96c76331121afce08a3b256761f4d572b84ee9786f07a4ecff?d=identicon)[Smidswater](/maintainers/Smidswater)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/smidswater-abos/health.svg)

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

PHPackages © 2026

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