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

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

zaphyr-org/config
=================

Load configuration files the easy way. This configuration loader supports PHP, INI, JSON, XML, YAML and NEON file extensions.

2.3.0(1y ago)02.0k—5.1%1MITPHPPHP &gt;=8.1CI passing

Since Jul 9Pushed 3mo ago1 watchersCompare

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

READMEChangelog (9)Dependencies (8)Versions (11)Used By (1)

[![License](https://camo.githubusercontent.com/2cba0179b09af54cbe272238f6c4cd099a327beff1e487bff005127a1fb0f423/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7a61706879722d6f72672f636f6e666967)](https://camo.githubusercontent.com/2cba0179b09af54cbe272238f6c4cd099a327beff1e487bff005127a1fb0f423/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7a61706879722d6f72672f636f6e666967)[![Version](https://camo.githubusercontent.com/35d108f2df4699a2d64dfaa6f6c45626deb75571b92c319993cb2b3a832266e4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a61706879722d6f72672f636f6e666967)](https://camo.githubusercontent.com/35d108f2df4699a2d64dfaa6f6c45626deb75571b92c319993cb2b3a832266e4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a61706879722d6f72672f636f6e666967)[![Issues](https://camo.githubusercontent.com/bac8a53727d6c81755b9a6100143ff441d5f352124b91807e257676d749d9472/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f7a61706879722d6f72672f636f6e666967)](https://camo.githubusercontent.com/bac8a53727d6c81755b9a6100143ff441d5f352124b91807e257676d749d9472/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f7a61706879722d6f72672f636f6e666967)[![Tests](https://github.com/zaphyr-org/config/actions/workflows/tests.yml/badge.svg)](https://github.com/zaphyr-org/config/actions/workflows/tests.yml/badge.svg)[![Codecov](https://camo.githubusercontent.com/a4c32a9f09f9cd7ca5025913cd38e6a7156d9ec6e3a0c675eaefd91566111ae5/68747470733a2f2f636f6465636f762e696f2f67682f7a61706879722d6f72672f636f6e6669672f67726170682f62616467652e7376673f746f6b656e3d3253545034304b433731)](https://codecov.io/gh/zaphyr-org/config)

CONFIG
======

[](#config)

Load configuration files the easy way. This configuration loader supports [PHP](https://en.wikipedia.org/wiki/PHP), [INI](https://en.wikipedia.org/wiki/INI_file), [JSON](https://en.wikipedia.org/wiki/JSON), [XML](https://en.wikipedia.org/wiki/XML), [YAML](https://en.wikipedia.org/wiki/YAML)and [NEON](https://ne-on.org/) file extensions.

System Requirements
-------------------

[](#system-requirements)

You need `PHP => 8.1` but the latest stable version of PHP is recommended.

This package is continuously tested on the following PHP versions:

- PHP 8.1
- PHP 8.2
- PHP 8.3
- PHP 8.4
- PHP 8.5

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

[](#installation)

It's recommended that you use [Composer](https://getcomposer.org/) to install the config repository.

```
composer require zaphyr-org/config
```

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

[](#documentation)

You can read the full documentation [here](https://zaphyr.org/docs/repositories/latest/config).

Issues
------

[](#issues)

Bug reports and feature requests can be submitted on the [GitHub Issue Tracker](https://github.com/zaphyr-org/config/issues).

Security
--------

[](#security)

If you discover security related issues, please email  **instead of using the issue tracker!**

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://zaphyr.org/contributions) for details.

Code of Conduct
---------------

[](#code-of-conduct)

Please see [CODE OF CONDUCT](https://zaphyr.org/contributions#code-of-conduct) for details.

License
-------

[](#license)

This project is licensed under the MIT license. See [LICENSE](LICENSE.md) for more information.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance62

Regular maintenance activity

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Recently: every ~129 days

Total

10

Last Release

525d ago

Major Versions

1.x-dev → 2.0.02023-04-05

PHP version history (2 changes)1.0.0PHP &gt;=7.2

2.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/25499f6685a498dbadd9b45769a40dc4c792434b54f4d434ce44a432f0b18741?d=identicon)[merloxx](/maintainers/merloxx)

---

Top Contributors

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

---

Tags

arrayconfiginijsonloaderphpxmlyamlymljsonxmlarrayconfigyamlloaderneonini

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

97513.5M170](/packages/hassankhan-config)[jbzoo/data

An extended version of the ArrayObject object for working with system settings or just for working with data arrays

891.6M23](/packages/jbzoo-data)[m1/vars

Vars is a simple to use and easily extendable configuration loader with in built loaders for ini, json, PHP, toml, XML and yaml/yml file types. It also comes with in built support for Silex and more frameworks to come soon.

69124.2k1](/packages/m1-vars)[davidepastore/slim-config

A slim middleware to read configuration from different files based on hassankhan/config

338.9k1](/packages/davidepastore-slim-config)

PHPackages © 2026

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