diff --git a/README.md b/README.md index 15279e4..9dac610 100644 --- a/README.md +++ b/README.md @@ -137,6 +137,21 @@ $toggle = new Toggle(new ArrayStorage($features)); $toggle = new Toggle(StorageFactory::factory($features)); ``` +### ENV + +Reads values from environment variables. + +```php +isActive('MY_AWESOME_FEATURE'); // true if the environment variable MY_AWESOME_FEATURE is set to a truthy value +``` + ### YAML In order to use yml files for config, you need to include the [Symfony Yaml Component](http://symfony.com/doc/current/components/yaml/index.html)