PHPackages                             jameslevi/silhouette - 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. jameslevi/silhouette

ActiveLibrary

jameslevi/silhouette
====================

Is a simple configuration management library that supports multiple configuration file formats.

v1.0.1(5y ago)07MITPHPPHP &gt;=5.3.0

Since May 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jameslevi/silhouette)[ Packagist](https://packagist.org/packages/jameslevi/silhouette)[ RSS](/packages/jameslevi-silhouette/feed)WikiDiscussions main Synced today

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

Silhouette
==========

[](#silhouette)

[![](https://camo.githubusercontent.com/07387d0affdc140ca0f9e4fbc1b495ddabab79d6eb29331167dd4c4e2f9ae500/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76312e302e312d696e666f726d6174696f6e616c3f7374796c653d666c6174266c6f676f3d2533434c4f474f5f4e414d45253345266c6f676f436f6c6f723d776869746526636f6c6f723d326262633861)](https://camo.githubusercontent.com/07387d0affdc140ca0f9e4fbc1b495ddabab79d6eb29331167dd4c4e2f9ae500/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76312e302e312d696e666f726d6174696f6e616c3f7374796c653d666c6174266c6f676f3d2533434c4f474f5f4e414d45253345266c6f676f436f6c6f723d776869746526636f6c6f723d326262633861) [![](https://camo.githubusercontent.com/b4344b50cc4d00bc34f5209dfc527e7180da7c06507ab149bddbe79d0313e021/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d696e666f726d6174696f6e616c3f7374796c653d666c6174266c6f676f3d2533434c4f474f5f4e414d45253345266c6f676f436f6c6f723d776869746526636f6c6f723d326262633861)](https://camo.githubusercontent.com/b4344b50cc4d00bc34f5209dfc527e7180da7c06507ab149bddbe79d0313e021/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d696e666f726d6174696f6e616c3f7374796c653d666c6174266c6f676f3d2533434c4f474f5f4e414d45253345266c6f676f436f6c6f723d776869746526636f6c6f723d326262633861)

Is a simple configuration management library that supports multiple configuration file formats.

Features
--------

[](#features)

1. Supports php array and json format.
2. Facade implementation to beautifully access your configuration data.
3. Easy integration with other frameworks or even without framework at all.

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

[](#installation)

1. You can install via composer.

```
composer require jameslevi/silhouette

```

2. Include the autoloader at the upper part of your code.

```
require_once __DIR__.'/vendor/autoload.php';
```

Getting Started
---------------

[](#getting-started)

1. Import the config class into your project.

```
use Graphite\Component\Silhouette\Config;
```

2. Create a new config file in php or json. But for this example let's try a php file that returns an array.

```
