PHPackages                             thetminnhtun/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. thetminnhtun/dotenv

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

thetminnhtun/dotenv
===================

Enviroment variable for php developement

v0.2.0(6y ago)18MITPHPPHP &gt;=5.3.0

Since Aug 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/thetminnhtun/dotenv)[ Packagist](https://packagist.org/packages/thetminnhtun/dotenv)[ RSS](/packages/thetminnhtun-dotenv/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (3)Used By (0)

PHP dotenv
==========

[](#php-dotenv)

Enviroment variable for PHP development

### Installation with Composer

[](#installation-with-composer)

`composer require thetminnhtun/dotenv`

### Usage

[](#usage)

- Create `.env` file and write following code

```
APP_NAME=ProjectName
APP_ENV=local
APP_URL=http://localhost

```

- Create `index.php` file and write following code

```
