PHPackages                             garkavenkov/dotenv - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. garkavenkov/dotenv

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

garkavenkov/dotenv
==================

Register environments variable from .env

v2.0.1(4mo ago)091MITPHP

Since Sep 25Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/garkavenkov/dotenv)[ Packagist](https://packagist.org/packages/garkavenkov/dotenv)[ RSS](/packages/garkavenkov-dotenv/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (1)

Dotenv
======

[](#dotenv)

**Dotenv** - Registers environment variables from a .env file

Getting Started
---------------

[](#getting-started)

Use [Composer](https://getcomposer.org "Composer")

> $ composer require garkavenkov/dotenv

or add it by hand to your composer.json file.

Usage
-----

[](#usage)

### Initialization

[](#initialization)

```
