PHPackages                             yasd/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yasd/config

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

yasd/config
===========

0.0.2(4y ago)05MITPHPPHP &gt;=8.0

Since Jun 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/YaShangDong/Config)[ Packagist](https://packagist.org/packages/yasd/config)[ RSS](/packages/yasd-config/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

`yasd/config`
=============

[](#yasdconfig)

```
composer require yasd/config
```

```
use Nette\Schema\Expect;
use YaSD\Config\AbstractConfig;
use stdClass;

class MyConfig extends AbstractConfig
{
    public const MYKEY = 'mykey';

    public function getMyValue(): int
    {
        return $this->get(
            self::MYKEY,
            Expect::int(),
        );
    }

    public function getMysql(): stdClass
    {
        return $this->get(
            'mysql',
            Expect::structure([
                'host'     => Expect::string()->required(),
                'port'     => Expect::int()->required(),
                'user'     => Expect::string()->required(),
                'password' => Expect::string()->required(),
                'dbname'   => Expect::string()->required(),
            ])
        );
    }
}
```

```
$config = new MyConfig(__DIR__ . '/test.config.php');

$ret = $config->reload()->getMyValue();
var_dump($ret);

$ret = $config->getMysql();
var_dump($ret);
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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 ~0 days

Total

2

Last Release

1800d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[league/config

Define configuration arrays with strict schemas and access values with dot notation

564302.2M24](/packages/league-config)[tomzx/php-semver-checker

PHP Semantic Versioning Checker

434232.8k2](/packages/tomzx-php-semver-checker)[shipmonk/name-collision-detector

Simple tool to find ambiguous classes or any other name duplicates within your project.

362.1M35](/packages/shipmonk-name-collision-detector)[spaze/csp-config

Build Content Security Policy from a config file

143.3k](/packages/spaze-csp-config)[mix/mix-skeleton

Full-featured development skeleton

132.1k](/packages/mix-mix-skeleton)

PHPackages © 2026

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