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

ActiveLibrary

codzo/config
============

Configuration handler

0111PHP

Since Sep 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/codzo/Config)[ Packagist](https://packagist.org/packages/codzo/config)[ RSS](/packages/codzo-config/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Config
======

[](#config)

Configuration handler.

This package will read configuration files from a directory and allow retrieval of data in several ways.

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

[](#installation)

```
composer require codzo/config

```

Usage
-----

[](#usage)

```
$config = new \Codzo\Config\Config('./config');

// retrieve the config
$app = $config->get('app');
$enabled = $app['ini']['enabled'];

// or quickly
$enabled = $config->get('app.ini.enabled');
```

The configuration directory
---------------------------

[](#the-configuration-directory)

This package requires a directory as home to all configuration files. Files in this directory will be considered as configuration files if filetype supported.

This package will not load any file in sub-directory.

The configuration files
-----------------------

[](#the-configuration-files)

These file types are supported:

- php
- ini
- xml

PHP configuration files shall return an array.

INI files will be parsed using `parse_ini_file()` method.

XML files will be parsed using `simplexml_load_file()` method.

The configuration loaded from all files will then be merged together. Duplicated items will be overwritten without any warning.

Retrieve the configuration
--------------------------

[](#retrieve-the-configuration)

Configurations can be retrieved in several ways.

- as an array: Use keys to navigate in multiplication arrays
- quick search: Concat the keys into a path and get the configuration quickly.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d50c4f0fcf0cfd840aee71baebc79f441ea8f3a7bef4406fcd5fba97022d4cd?d=identicon)[neilfan](/maintainers/neilfan)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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