digitalkaoz/phpdotenv-middleware

StackPHP Middleware for loading Environment Variables through PHPDotEnv

1.0.1 2016-08-23 11:07 UTC

This package is not auto-updated.

Last update: 2024-12-19 04:27:16 UTC


README

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?