PHPackages                             mnhcc/ml-core - 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. [Framework](/categories/framework)
4. /
5. mnhcc/ml-core

ActiveLibrary[Framework](/categories/framework)

mnhcc/ml-core
=============

Minimalus Layoutilus — core autoloader, base object model, helpers, config and event bus

v1.0.0(2w ago)04↓100%1LGPL-2.1-onlyPHPPHP &gt;=5.4CI passing

Since Apr 24Pushed 2w agoCompare

[ Source](https://github.com/MinimalusLayoutilus/ml-core)[ Packagist](https://packagist.org/packages/mnhcc/ml-core)[ Docs](https://github.com/carschrotter/ml-core)[ RSS](/packages/mnhcc-ml-core/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (8)Used By (1)

mnhcc/ml-core
=============

[](#mnhccml-core)

[![PHP 7.4](https://github.com/MinimalusLayoutilus/ml-core/actions/workflows/ci-php74.yml/badge.svg)](https://github.com/MinimalusLayoutilus/ml-core/actions/workflows/ci-php74.yml)[![PHP 8.1](https://github.com/MinimalusLayoutilus/ml-core/actions/workflows/ci-php81.yml/badge.svg)](https://github.com/MinimalusLayoutilus/ml-core/actions/workflows/ci-php81.yml)[![PHP 8.5](https://github.com/MinimalusLayoutilus/ml-core/actions/workflows/ci-php85.yml/badge.svg)](https://github.com/MinimalusLayoutilus/ml-core/actions/workflows/ci-php85.yml)

Core package of the Minimalus Layoutilus PHP framework.

Provides the custom SPL autoloader (`BootstrapHandler`), base object model (`MNHcC`, `Bootstrap`), scalar box types (`AutoBox\Scalar`), array/string helpers, the constant/config bootstrap, and the event bus (`EventManager` + `Event` + `EventParms`).

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

[](#requirements)

- PHP ≥ 5.4

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

[](#installation)

```
composer require mnhcc/ml-core
```

Bootstrap
---------

[](#bootstrap)

```
namespace mnhcc\ml { const INDEX = true; }

require_once __DIR__ . '/vendor/autoload.php';

mnhcc\ml\classes\BootstrapHandler::initial(__DIR__);
```

`BootstrapHandler::initial()` registers the SPL autoloader, defines global constants (`NSS`, `n`, `br`, `php`, `DS`) and path constants (`MNHCC_PATH`, `ROOT_PATH`).

Autoloader
----------

[](#autoloader)

The autoloader maps namespace segments to files using non-standard extensions:

ExtensionType`.class.php`class`.interface.php`interface`.trait.php`traitEvent bus
---------

[](#event-bus)

A small static event dispatcher. Listeners register against a normalised event name (leading `on` stripped, `ucfirst`); `raise()` dispatches a name + `EventParms` payload to every registered listener in order.

```
use mnhcc\ml\classes\EventManager;
use mnhcc\ml\classes\Event;
use mnhcc\ml\classes\EventParms;

EventManager::register(new Event(function (EventParms $p) {
    // do something with $p->getParms() / $p->get('key')
}, 'myEvent'));

EventManager::raise('myEvent', new EventParms(['key' => 'value']));
```

Today's bus is **fire-and-forget** — listeners observe but cannot vote on the result. See [`docs/EVENT_SYSTEM.md`](docs/EVENT_SYSTEM.md) for the current behaviour, the gaps, and the planned interventional/filter extensions.

License
-------

[](#license)

[LGPL-2.1-only](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance96

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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

Every ~4 days

Total

7

Last Release

20d ago

Major Versions

v0.9.5 → v1.0.02026-05-20

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4221960?v=4)[MNHcC (Michael Hegenbarth)](/maintainers/carschrotter)[@carschrotter](https://github.com/carschrotter)

---

Top Contributors

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

---

Tags

frameworkmvcautoloaderphp54

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mnhcc-ml-core/health.svg)

```
[![Health](https://phpackages.com/badges/mnhcc-ml-core/health.svg)](https://phpackages.com/packages/mnhcc-ml-core)
```

PHPackages © 2026

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