PHPackages                             eru123/venv - 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. eru123/venv

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

eru123/venv
===========

Load env files virtually

v1.0.7(2y ago)186Apache-2.0PHP

Since Oct 6Pushed 2y ago1 watchersCompare

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

READMEChangelog (8)DependenciesVersions (9)Used By (0)

venv
====

[](#venv)

Load env files virtually and isolated to $\_ENV to add security layer on your data, with added extra tooling for convenience

### Installation

[](#installation)

```
composer require eru123/venv
```

### Basic Usage

[](#basic-usage)

`.env` file

```
APP_ENV=development

# variable in env file will only work if the
# variable that was called is already defined.
# NOTE: variable will only work on .env file
DB_NAME=${APP_ENV}
```

`index.php` file

```
