PHPackages                             alejan/yii2-configloader - 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. alejan/yii2-configloader

ActiveLibrary

alejan/yii2-configloader
========================

Build configuration array from config files for different app parts

0.1.1(8y ago)119MITPHPPHP &gt;=5.4.0

Since Oct 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Ale-jan/yii2-configloader)[ Packagist](https://packagist.org/packages/alejan/yii2-configloader)[ RSS](/packages/alejan-yii2-configloader/feed)WikiDiscussions master Synced 2mo ago

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

Yii2 Configloader
=================

[](#yii2-configloader)

Build configuration array from config files for different app parts.

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

[](#installation)

Install the package with [composer](http://getcomposer.org):

```
composer require alejan/yii2-configloader

```

Features
--------

[](#features)

You can use this extension to solve some or all of the following tasks:

- Build Yii2 configuration arrays for different app parts
- Load environment variables from a `.env` file
- Get config options from environment variables
- Load environment and local configuration overrides

Usage
-----

[](#usage)

### 1. Initializing

[](#1-initializing)

Override the index.php file like this

```
