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 today

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 52% 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

4127d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/141486304?v=4)[Andreas Weber](/maintainers/andreas-weber)[@andreas-weber](https://github.com/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

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49617.1k](/packages/blackfire-player)[altis/local-server

Local Server module for Altis

18221.6k3](/packages/altis-local-server)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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