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

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

mleczek/config
==============

Read app config from PHP files.

v1.0.0(4y ago)04MITPHPPHP ~7.4 || ~8.0

Since Jul 11Pushed 4y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

This package provide simple way to access read-only application configuration.

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

[](#installation)

```
composer require mleczek/config

```

Config file definition
----------------------

[](#config-file-definition)

The configuration is stored in flat php files which returns a data. It can be a simple string, number or associative array with nested keys.

The code below is a sample config file:

```
