Skip to content

digitalkaoz/phpdotenv-middleware

Repository files navigation

StackPHP Middleware for PhpDotEnv

this middleware lets use load environment variables. read vlucas/phpdotenv for detailed usage.

Build Status Dependency Status Scrutinizer Code Quality Code Coverage SensioLabsInsight Latest Stable Version Total Downloads StyleCI

Installation

$ composer require digitalkaoz/phpdotenv-middleware

Usage

$middleware = new Rs\Stack\PhpDotEnv\Middleware($app, __DIR__, '.env');

//or with `stack/builder`

$stack = (new Stack\Builder())
    ->push('Rs\Stack\PhpDotEnv\Middleware', __DIR__.'/../')
;

Arguments:

  1. The next HttpKernel
  2. Path to the Environment file
  3. Name of the Environment file

Tests

$ composer test

TODOS

  • more DotEnv Implementations?

About

PHPDotenv StackPHP Middleware for loading Environment Variables

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages