2017 © Pedro Peláez
 

library zend-phpdotenv

ZF2 Module that loads vlucas/phpdotenv

image

abacaphiliac/zend-phpdotenv

ZF2 Module that loads vlucas/phpdotenv

  • Monday, November 7, 2016
  • by abacaphiliac
  • Repository
  • 1 Watchers
  • 2 Stars
  • 3,363 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 9 Versions
  • 8 % Grown

The README.md

Scrutinizer Code Quality Code Coverage Build Status, (*1)

zend-phpdotenv

ZF2 Module that loads vlucas/phpdotenv., (*2)

Module attaches a listener to EVENT_LOAD_MODULE on ModuleManager's EventManager to load environment variables while the module is loaded., (*3)

Installation

composer require abacaphiliac/zend-phpdotenv

Usage

  1. Add Abacaphiliac\ZendPhpDotEnv to your ZF2 application module config.
  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, (*4)

See composer.json., (*5)

Contributing

composer install && vendor/bin/phing

This library attempts to comply with PSR-1, PSR-2, and PSR-4. If you notice compliance oversights, please send a patch via pull request., (*6)

The Versions