PHPackages                             gaucho/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. gaucho/env

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

gaucho/env
==========

Registers environment variables from a .env file (only 40 lines of code!)

v0.2.0(3y ago)1751MITPHP

Since Nov 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/devgaucho/env)[ Packagist](https://packagist.org/packages/gaucho/env)[ RSS](/packages/gaucho-env/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (6)Used By (1)

Env
===

[](#env)

Registers environment variables from a .env file (only 40 lines of code!)

Installation
------------

[](#installation)

```
composer require gaucho/env
```

.env format (RAW)
-----------------

[](#env-format-raw)

```
#COMMENT
VAR=foo

```

Use
---

[](#use)

```
