PHPackages                             william-costa/dot-env - 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. william-costa/dot-env

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

william-costa/dot-env
=====================

A simple library for managing environment variables in PHP.

v0.1.0(5y ago)94.0k1GPL-3.0-or-laterPHPPHP &gt;=7.0

Since Mar 19Pushed 4y ago1 watchersCompare

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

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

PHP Environment Variables Manager
=================================

[](#php-environment-variables-manager)

A simple library for managing environment variables in PHP.

Usage
-----

[](#usage)

To use this library, simply create a `.env` file at the root of the project, following the model below (one variable per line):

```
DB_HOST=localhost
DB_USER=root
DB_PASS=pass
DB_NAME=database
DB_PORT=3307

```

```
