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

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

krak/config
===========

Lightweight Config Registry

v0.1.0(9y ago)116[2 issues](https://github.com/krakphp/config/issues)MITPHP

Since May 1Pushed 9y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Config
======

[](#config)

The Config library provides a simple interface for adding configuration values. All config files are loaded lazily only when invoked providing a clean yet efficient way of managing config.

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

[](#installation)

Install with composer at `krak/config`

Usage
-----

[](#usage)

All Config is managed via the ConfigStore. `Config\store` provides a default instance which will lazy load files/data and will cache the results to prevent multiple filesystem calls.

### Adding Config Items

[](#adding-config-items)

Adding multiple entries under the same key will merge the data when it's retrieved. The entries added last will overwrite the previous entries.

```
