PHPackages                             jwyuen/configee-php - 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. jwyuen/configee-php

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

jwyuen/configee-php
===================

Configee: A dead simple config manager for php

v1.3(8y ago)024811MITPHPPHP &gt;=5.3.0

Since Mar 18Pushed 8y ago2 watchersCompare

[ Source](https://github.com/jwyuen/configee-php)[ Packagist](https://packagist.org/packages/jwyuen/configee-php)[ RSS](/packages/jwyuen-configee-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (2)Versions (5)Used By (1)

Configee for PHP!
=================

[](#configee-for-php)

What is it?
-----------

[](#what-is-it)

A php library that you can add to any project to help you manage application specific php config files, such as database connection parameters. For example, if you were creating a PHP framework, you'd want anyone using your project to be able to define their own config parameters for connecting to their own database.

What is the purpose?
--------------------

[](#what-is-the-purpose)

The purpose is to have a dead simple interface for setting and getting configuration parameters by only having to define config files.

Install
-------

[](#install)

Just add to your composer.json like:

```
{
  "require": {
    "jwyuen/configee-php": "1.1"
  }
}
```

Usage
-----

[](#usage)

Instantiate the main class wherever you need to use your configuration parameters, such as a bootstrap file.

```
$configee = new \Configee\Configee('your/config/path');
$config = $configee->getConfig();
```

Config Parsing Structure
------------------------

[](#config-parsing-structure)

Configee can handle an n-deep directory structure if you so choose to nest your configs like so. The only requirement is that your config files are php files and return an array.

For example, consider the following directory structure:

```
configroot
\- db
 |- mysql.php
 \- AnEmptyFolder
\-general.php

```

Contents of mysql.php:

```
