PHPackages                             andreas-weber/php-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. andreas-weber/php-config

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

andreas-weber/php-config
========================

Config library for PHP

1.0.1(11y ago)01.1kMITPHPPHP &gt;=5.3

Since Mar 16Pushed 11y agoCompare

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

READMEChangelog (2)Dependencies (7)Versions (3)Used By (0)

andreas-weber/php-config
========================

[](#andreas-weberphp-config)

[![Build Status](https://camo.githubusercontent.com/8fcabc6d2c08833db7dd46133e7259b4cd4059edf0fec35fb874a78baa32f1fc/68747470733a2f2f7472617669732d63692e6f72672f616e64726561732d77656265722f7068702d636f6e6669672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/andreas-weber/php-config)

Config library for PHP 5.3+.

Supported file formats
----------------------

[](#supported-file-formats)

- YAML
- Array

Requirements
------------

[](#requirements)

Check shipped composer.json.

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

[](#installation)

Simply add a dependency on `andreas-weber/php-config` to your project's [Composer](http://getcomposer.org/) `composer.json` file.

Usage
-----

[](#usage)

- [Load a single file](examples/single-file/example.php)
- [Load multiple files](examples/multiple-files/example.php)
- [Replacements](examples/replacements/example.php)
- [Merge in existing config](examples/merge-in-config/example.php)
- [Load an array](examples/config-from-array/example.php)

Developer
---------

[](#developer)

### Environment

[](#environment)

Boot:

```
vagrant up

```

Enter virtual machine:

```
vagrant ssh

```

Run tests:

```
cd /vagrant
composer install
vendor/bin/phpunit src/Test/

```

### Build targets

[](#build-targets)

```
vagrant@andreas-weber:/vagrant$ ant
Buildfile: /vagrant/build.xml

help:
     [echo]
     [echo] The following commands are available:
     [echo]
     [echo] |   +++ Build +++
     [echo] |-- build                (Run the build)
     [echo] |   |-- dependencies     (Install dependencies)
     [echo] |   |-- tests            (Lint all files and run tests)
     [echo] |   |-- metrics          (Generate quality metrics)
     [echo] |-- cleanup              (Cleanup the build directory)
     [echo] |
     [echo] |   +++ Composer +++
     [echo] |-- composer             -> composer-download, composer-install
     [echo] |-- composer-download    (Downloads composer.phar to project)
     [echo] |-- composer-install     (Install all dependencies)
     [echo] |
     [echo] |   +++ Testing +++
     [echo] |-- phpunit              -> phpunit-full
     [echo] |-- phpunit-tests        (Run unit tests)
     [echo] |-- phpunit-full         (Run unit tests and generate code coverage report / logs)
     [echo] |
     [echo] |   +++ Metrics +++
     [echo] |-- coverage             (Show code coverage metric)
     [echo] |-- phploc               (Show lines of code metric)
     [echo] |-- qa                   (Run quality assurance tools)
     [echo] |-- |-- phpcpd           (Show copy paste metric)
     [echo] |-- |-- phpcs            (Show code sniffer metric)
     [echo] |-- |-- phpmd            (Show mess detector metric)
     [echo] |
     [echo] |   +++ Metric Reports +++
     [echo] |-- phploc-report        (Generate lines of code metric report)
     [echo] |-- phpcpd-report        (Generate copy paste metric report)
     [echo] |-- phpcs-report         (Generate code sniffer metric report)
     [echo] |-- phpmd-report         (Generate mess detector metric report)
     [echo] |
     [echo] |   +++ Tools +++
     [echo] |-- lint                 (Lint all php files)
     [echo]

```

Thoughts
--------

[](#thoughts)

Pull requests are highly appreciated. Built with love. Hope you'll enjoy.. :-)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

4081d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a8b5991f2ce96a615120c6721d212010150778c3371f303be726efd5ddd9915?d=identicon)[andreas-weber](/maintainers/andreas-weber)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/andreas-weber-php-config/health.svg)

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

###  Alternatives

[orchestra/canvas

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[bruli/php-git-hooks

Git hooks for PHP projects.

675370.8k5](/packages/bruli-php-git-hooks)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)[pixelfederation/circuit-breaker-bundle

An analogous bundle to Java's Hystrix in PHP world.

1226.5k](/packages/pixelfederation-circuit-breaker-bundle)

PHPackages © 2026

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