Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lokhman authored Jun 30, 2016
1 parent 70d0c8b commit 91f7b87
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# silex-config
Simple and lightweight JSON configuration provider for [Silex](http://silex.sensiolabs.org/)
micro-framework. It uses JSON file format to manage configuration. Library also supports
different environments via setting global environment variable.
different environments via setting global environment variable or passing command line (CLI)
parameter.

Library is fully compatible with **Silex 2.0+** (releases `2.0+`). Legacy versions are
supported in branch `v1` (releases `<2.0`).

## Installation
You can install library through [Composer](http://getcomposer.org):
Expand Down Expand Up @@ -67,6 +71,12 @@ In order to do this, you have to set a global environmental variable.

SetEnv SILEX_ENV prod

### CLI

Starting from version 2.1, library supports command line `--env` parameter to define environment.

$ php bin/script.php --env=prod

## Options

`ConfigServiceProvider` constructor supports additional optional parameters as:
Expand Down

0 comments on commit 91f7b87

Please sign in to comment.