PHPackages                             marko/config - 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. marko/config

ActiveMarko-module[Framework](/categories/framework)

marko/config
============

Configuration loading and merging for Marko Framework

0.7.0(1mo ago)0777↑44.4%20MITPHPPHP ^8.5

Since Mar 25Pushed 4w agoCompare

[ Source](https://github.com/marko-php/marko-config)[ Packagist](https://packagist.org/packages/marko/config)[ RSS](/packages/marko-config/feed)WikiDiscussions develop Synced 3w ago

READMEChangelogDependencies (8)Versions (18)Used By (20)

marko/config
============

[](#markoconfig)

Type-safe configuration management with dot notation, automatic merging, and multi-tenant scope support.

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

[](#installation)

```
composer require marko/config
```

Quick Example
-------------

[](#quick-example)

```
use Marko\Config\ConfigRepositoryInterface;

class DatabaseConnection
{
    public function __construct(
        private ConfigRepositoryInterface $config,
    ) {}

    public function connect(): PDO
    {
        $host = $this->config->getString('database.host');
        $port = $this->config->getInt('database.port');

        return new PDO("mysql:host={$host};port={$port}");
    }
}
```

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

[](#documentation)

Full usage, API reference, and examples: [marko/config](https://marko.build/docs/packages/config/)

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance92

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity50

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

Every ~3 days

Recently: every ~9 days

Total

16

Last Release

54d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/437029?v=4)[Mark Shust](/maintainers/markshust)[@markshust](https://github.com/markshust)

---

Top Contributors

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

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/marko-config/health.svg)

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

PHPackages © 2026

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