PHPackages                             ndybnov-hw03/cnf-read - 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. ndybnov-hw03/cnf-read

ActiveLibrary

ndybnov-hw03/cnf-read
=====================

1.1.0(2y ago)060PHPPHP &gt;=7.4

Since Aug 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dnicknick/cnf-read-package)[ Packagist](https://packagist.org/packages/ndybnov-hw03/cnf-read)[ RSS](/packages/ndybnov-hw03-cnf-read/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

#### describe

[](#describe)

Reader Config file, e.g. `.env`

#### require

[](#require)

```
"require": {
        "php": ">=7.4"
    }

```

#### setup

[](#setup)

```
composer require ndybnov-hw03/cnf-read
```

#### sample using

[](#sample-using)

```
$fileConfig = new FileConfig();
$pathToFileConfig = __DIR__;
$fileConfig->setFilePath($pathToFileConfig);
$fileConfig->setFileName($fileNameConfig = '.env');
$pathFull = $fileConfig->getFullPath();
```

```
$readerConfig = new ReadConfig($pathFull);
$readerConfig->read();
$arrayConfig = $readerConfig->toArray();
```

```
$storage = new Storage();
$storage->fromArray($arrayConfig);
```

```
class ConfigKeysDTO {
    public const KEY = 'KEY';
    public const BKEY = 'BKEY';
}
```

```
echo $storage->get(ConfigKeysDTO::KEY);
echo PHP_EOL;

echo $storage->get(ConfigKeysDTO::BKEY) ? '+' : '-';
echo PHP_EOL;
```

Enjoy and to use ))

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Total

3

Last Release

995d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/790953792f4231c9c3f9fa2f2a669cda6fc21dc7d7f101b33f7f5b93e8feedc7?d=identicon)[dnicknick](/maintainers/dnicknick)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ndybnov-hw03-cnf-read/health.svg)

```
[![Health](https://phpackages.com/badges/ndybnov-hw03-cnf-read/health.svg)](https://phpackages.com/packages/ndybnov-hw03-cnf-read)
```

PHPackages © 2026

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