digitalkaoz / phpdotenv-middleware
StackPHP Middleware for loading Environment Variables through PHPDotEnv
1.0.1
2016-08-23 11:07 UTC
Requires
- php: >=5.5
- symfony/http-kernel: ^2.1 | ^3.1
- vlucas/phpdotenv: ^1.1 | ^2.0
Requires (Dev)
- phpspec/phpspec: ^2.0 | ^3.0
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.
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:
- The next HttpKernel
- Path to the Environment file
- Name of the Environment file
Tests
$ composer test
TODOS
- more DotEnv Implementations?