PHPackages                             erunion/env\_cond - 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. erunion/env\_cond

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

erunion/env\_cond
=================

Conditional wrapper for the stock env() command in Laravel.

1.0.1(10y ago)13.0kMITPHP

Since Sep 14Pushed 10y ago1 watchersCompare

[ Source](https://github.com/erunion/env_cond)[ Packagist](https://packagist.org/packages/erunion/env_cond)[ RSS](/packages/erunion-env-cond/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

env\_cond
=========

[](#env_cond)

A conditional wrapper for the stock env() command in Laravel. If the environment variable is not present, the default value returned is dependent upon the current application environment.

Install
-------

[](#install)

```
composer require erunion/env_cond
```

Usage
-----

[](#usage)

Say you have a `config/services.php` that looks like this:

```
