PHPackages                             nodusblocker/cleanphp - 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. nodusblocker/cleanphp

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

nodusblocker/cleanphp
=====================

A lightweight PHP Library to Make Code Clean

1.0.0(8y ago)05MITPHPPHP ^5.4.0

Since Mar 15Pushed 8y agoCompare

[ Source](https://github.com/nodusblocker/cleanphp)[ Packagist](https://packagist.org/packages/nodusblocker/cleanphp)[ RSS](/packages/nodusblocker-cleanphp/feed)WikiDiscussions master Synced 5d ago

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

Clean Code
==========

[](#clean-code)

A Simple PHP API to make code cleaner and readable. Available APIs:

- ArrayAccessor
- ParameterBag

##### ArrayAccessor

[](#arrayaccessor)

```
require_once 'vendor/autoload.php';
//Include class ArrayAccessor
use NodusBlocker\CleanPhp\Accessor\ArrayAccessor;
//Initialize an array
$array = [];
//Initialization ArrayAccessor.
//Accept a character used as key separator, default '.'
$accessor = new ArrayAccessor('.');
//Set a array value
$accessor->set($array, 'a', 1);
print_r($array);
```

Output:

```
Array
(
    [a] => 1
)

```

```
$accessor->get($array, 'a')); // return 1
$accessor->get($array, 'b'); // Don't throw error, return null
$accessor->has($array, 'a'); // return true
$accessor->has($array, 'b'); // return false
$accessor->set($array, 'b.c', 'abc');
print_r($array);
```

Output:

```
Array
(
    [a] => 1
    [b] => Array
    (
        [c] => abc
    )
)

```

```
$accessor->has($array, 'b'); // return false
```

##### ParameterBag

[](#parameterbag)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

2985d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b5eed460d5974c977e6d3e3cd2f863329c149d72e1367e4946f478697b21bee?d=identicon)[nodusblocker](/maintainers/nodusblocker)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/nodusblocker-cleanphp/health.svg)

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

###  Alternatives

[ergebnis/phpstan-rules

Provides rules for phpstan/phpstan.

4428.9M187](/packages/ergebnis-phpstan-rules)[aeon-php/calendar

PHP type safe, immutable calendar library

2079.7M16](/packages/aeon-php-calendar)[zenstruck/callback

Callable wrapper to validate and inject arguments.

569.6M4](/packages/zenstruck-callback)[phplang/scope-exit

Emulation of SCOPE\_EXIT construct from C++

1912.4M4](/packages/phplang-scope-exit)[prestashop/decimal

Object-oriented wrapper/shim for BC Math PHP extension. Allows for arbitrary-precision math operations.

178.2M5](/packages/prestashop-decimal)

PHPackages © 2026

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