PHPackages                             bauhaus/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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. bauhaus/config

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

bauhaus/config
==============

Simple config container

v0.1.0(8y ago)019[1 PRs](https://github.com/bauhausphp/config/pulls)MITPHPPHP &gt;=7.2CI failing

Since Dec 31Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/bauhausphp/config)[ Packagist](https://packagist.org/packages/bauhaus/config)[ RSS](/packages/bauhaus-config/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

[![Build Status](https://camo.githubusercontent.com/b1352e4b9ee104ebfe6e6d8d978d6b01e381c6ce69e4e511794947a11d4a14c2/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f626175686175737068702f636f6e6669672f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/bauhausphp/config)[![Coverage Status](https://camo.githubusercontent.com/c6534b60f55905e11f7cdb0300df7f986bfbc854527cd40d7f95b7b3a725c820/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f626175686175737068702f636f6e6669672f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/bauhausphp/config?branch=master)[![Codacy Badge](https://camo.githubusercontent.com/7819d2712296b506f05c6e5992ed3bc0686520b1fc63fddabf1a52c05d56b62d/68747470733a2f2f696d672e736869656c64732e696f2f636f646163792f35333431333964303961353934316563626663623964643932326533303131312e7376673f7374796c653d666c61742d737175617265)](https://www.codacy.com/app/bauhausphp/config)

[![Latest Stable Version](https://camo.githubusercontent.com/6148e6f6002ea334293c50b060f8503d6585317ea8a38c25d1da0bd52ea8b6a8/68747470733a2f2f706f7365722e707567782e6f72672f626175686175732f636f6e6669672f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/bauhaus/config)[![Latest Unstable Version](https://camo.githubusercontent.com/5adeb7fb2a309690df50cc724ba415f71bc004d03d08ab681b1f5ce3f84926c2/68747470733a2f2f706f7365722e707567782e6f72672f626175686175732f636f6e6669672f762f756e737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/bauhaus/config)[![Total Downloads](https://camo.githubusercontent.com/4585189534575c6b51f945367cba9d7d504ffa7444d412ea6563e6c41bd217e1/68747470733a2f2f706f7365722e707567782e6f72672f626175686175732f636f6e6669672f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/bauhaus/config)[![composer.lock](https://camo.githubusercontent.com/e948bb000ac4ee58e526c0c142dd190be0ac25ef29b52646e4bf89e50fd74be4/68747470733a2f2f706f7365722e707567782e6f72672f626175686175732f636f6e6669672f636f6d706f7365726c6f636b3f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/bauhaus/config)

> **Warning!** This package won't worry about backward compatibily for `v0.*`.

Bauhaus Config
==============

[](#bauhaus-config)

Bauhaus Config aims to provide a simple way to load and validate configurations via a container implementation of [PSR-11](http://www.php-fig.org/psr/psr-11/).

TODOS
-----

[](#todos)

This package isn't still complete. Missing features are:

- Validate configuration schema (use JSON schema)
- Load from `yaml` (It will be done in a new repository bauhaus/config-yaml)

Motivation
----------

[](#motivation)

It's annoying when something inside your application breaks just because a configuration entry was missing.

To prevent it, Bauhaus Config validates when the configurations are loaded (being implemented).

Usage
-----

[](#usage)

```
