PHPackages                             matiasnamendola/slimpower-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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. matiasnamendola/slimpower-config

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

matiasnamendola/slimpower-config
================================

Config is a file configuration loader that supports PHP, INI, XML, JSON, and YML files.

v0.0.1-alpha(9y ago)046MITPHPPHP &gt;=5.3.0

Since Dec 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/MatiasNAmendola/slimpower-config)[ Packagist](https://packagist.org/packages/matiasnamendola/slimpower-config)[ Docs](https://github.com/matiasnamendola/slimpower-config)[ RSS](/packages/matiasnamendola-slimpower-config/feed)WikiDiscussions master Synced yesterday

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

SlimPower - Config
==================

[](#slimpower---config)

[![Latest version](https://camo.githubusercontent.com/af9c7de9d23e0a3ee351a7fcfc52a618d567299d447e00dd7211b2b50f47e81c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4d61746961734e416d656e646f6c612f736c696d706f7765722d636f6e6669672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/matiasnamendola/slimpower-config) [![Total Downloads](https://camo.githubusercontent.com/93bdf5ba2a6b63d84be61ba84fc75dde2ff4e0c4f075bc3cced3c5394897414d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4d61746961734e416d656e646f6c612f736c696d706f7765722d636f6e6669672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/matiasnamendola/slimpower-config)

[![Latest Stable Version](https://camo.githubusercontent.com/6d535cded675e835e6f18d6e1c6cd99a47782d31aabdee58c684994f2d4f4120/68747470733a2f2f706f7365722e707567782e6f72672f6d61746961736e616d656e646f6c612f736c696d706f7765722d636f6e6669672f76657273696f6e3f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/matiasnamendola/slimpower-config)[![Latest Unstable Version](https://camo.githubusercontent.com/41f478f7d5f9fead740ef5b52a42ba3c3d90d37ce454db968b7496fa733c6923/68747470733a2f2f706f7365722e707567782e6f72672f6d61746961736e616d656e646f6c612f736c696d706f7765722d636f6e6669672f762f756e737461626c653f666f726d61743d666c61742d737175617265)](//packagist.org/packages/matiasnamendola/slimpower-config)[![Total Downloads](https://camo.githubusercontent.com/d0f100be2784b7975242eb49d2fbcb2630d3787947d48f0793f079029ce3781d/68747470733a2f2f706f7365722e707567782e6f72672f6d61746961736e616d656e646f6c612f736c696d706f7765722d636f6e6669672f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/matiasnamendola/slimpower-config)[![Monthly Downloads](https://camo.githubusercontent.com/ca97fa49375e98f097a8cfa158f2701368ca49909ee63ecda472a2538d510a3e/68747470733a2f2f706f7365722e707567782e6f72672f6d61746961736e616d656e646f6c612f736c696d706f7765722d636f6e6669672f642f6d6f6e74686c793f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/matiasnamendola/slimpower-config)[![Daily Downloads](https://camo.githubusercontent.com/8332face2c2ee9c8d9880cf52ef5b2077bcf6b3b51b5337babc888fc25a02244/68747470733a2f2f706f7365722e707567782e6f72672f6d61746961736e616d656e646f6c612f736c696d706f7765722d636f6e6669672f642f6461696c793f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/matiasnamendola/slimpower-config)[![composer.lock available](https://camo.githubusercontent.com/71c2959b9d5e60b93a2de9242af1ef4a5eb74ba37255058da62f20b1e6d8f14a/68747470733a2f2f706f7365722e707567782e6f72672f6d61746961736e616d656e646f6c612f736c696d706f7765722d636f6e6669672f636f6d706f7365726c6f636b3f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/matiasnamendola/slimpower-config)

Config is a file configuration loader that supports PHP, INI, XML, JSON, and YML files.

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

[](#installation)

In terminal:

```
composer require matiasnamendola/slimpower-config
```

Or you can add use this as your composer.json:

```
{
    "require": {
        "matiasnamendola/slimpower-config": "dev-master"
    }
}
```

### Requirements

[](#requirements)

Config requires PHP 5.3+, and suggests using the [Symfony Yaml component](https://github.com/symfony/Yaml).

Config is designed to be very simple and straightforward to use. All you can do with it is load, get, and set.

### Loading files

[](#loading-files)

The `Config` object can be created via the factory method `load()`, or by direct instantiation:

```
