An open API service indexing awesome lists of open source software.

https://github.com/ripeworks/rackem-dotenv

dotenv (.env) middleware for Rack'em
https://github.com/ripeworks/rackem-dotenv

Last synced: 4 months ago
JSON representation

dotenv (.env) middleware for Rack'em

Awesome Lists containing this project

README

          

# .env for your Rack'em application

A simple middleware that will load environment variables from `.env` into `$env`.

It's just like [this thing](https://github.com/bkeepers/dotenv).

## Installation

```bash
$ composer require rackem/dotenv:@stable
```

## Usage

```php
\Rackem::use_middleware("\Rackem\Dotenv");
```