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

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

roadie-xx/dotenv
================

Loads environment variables from .env file to getenv(), $\_ENV and $\_SERVER.

v1.0.2(1y ago)05MITPHPPHP &gt;=7.4

Since Sep 26Pushed 1y ago1 watchersCompare

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

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

DotEnv
======

[](#dotenv)

Just another (simple) DotEnv project

Loads environment variables from .env file to getenv(), $\_ENV and $\_SERVER.

Usage
-----

[](#usage)

Now we create a file named .env

```
APP_ENV=dev
DATABASE_DNS=mysql:host=localhost;dbname=test;
DATABASE_USER=root
DATABASE_PASSWORD=root
```

```
