Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating README #5

Merged
merged 1 commit into from
Jun 30, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# zend-phpdotenv
ZF2 Module that loads [vlucas/phpdotenv](https://github.com/vlucas/phpdotenv).

Module attaches a listener to EVENT_MERGE_CONFIG on ModuleManager's EventManager, before the ConfigListener merges the config.
Module attaches a listener to `EVENT_LOAD_MODULE` on ModuleManager's EventManager to load environment variables while the module is loaded.

# Installation
```bash
Expand All @@ -14,8 +14,8 @@ composer require abacaphiliac/zend-phpdotenv

# Usage
1. Add `Abacaphiliac\ZendPhpDotEnv` to your ZF2 application module config.
1. Create a `.env` file in the root directory of your ZF2 application.
1. Purge your ZF2 application's config cache (the environment variables will be added when the config is merged).
2. Create a `.env` file in the root directory of your ZF2 application.
3. Use `getenv()` anywhere in your code (or config) to pull environment variables.

# Dependencies
php >=5.3.9 and ZF >=2.3
Expand Down