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

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

janisto/env
===========

Environment class, used to set configuration depending on the server environment.

1.0.1(10y ago)124public domainPHPPHP &gt;=5.4.0

Since May 13Pushed 10y ago1 watchersCompare

[ Source](https://github.com/janisto/env)[ Packagist](https://packagist.org/packages/janisto/env)[ Docs](https://github.com/janisto/env)[ RSS](/packages/janisto-env/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

env
===

[](#env)

Environment class, used to set configuration depending on the server environment.

[![Software License](https://camo.githubusercontent.com/7c53331e1437898fc56852830e612a6a86871bf2de861562e9f753be21f91248/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d556e6c6963656e73652d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/85960c4e260a09dc382a4fc9292419e12975f3ea834254c477a624cc65711f42/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a616e6973746f2f656e762f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/janisto/env)[![Code Quality](https://camo.githubusercontent.com/ae347c98408ae1de443be44d91a46c0a6a92cf4655ee1e56bd4f23214fa3f38d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6a616e6973746f2f656e762e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/janisto/env)[![Code Coverage](https://camo.githubusercontent.com/2c9fb8f863618b7aa5d5ca3b84fdb72b66b3354c183c9e51163117a0e1c13cd8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6a616e6973746f2f656e762e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/janisto/env)[![Packagist Version](https://camo.githubusercontent.com/d46635f6ad550b3bf5801f2a52920bd39ea2c22ba3a24ea6c6004cf45aaeae38/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a616e6973746f2f656e762e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/janisto/env)[![Total Downloads](https://camo.githubusercontent.com/7ec3b391d50f783e7cc2fdc8036c877c8003c7c28f4fbe19223d4232804ab2f9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a616e6973746f2f656e762e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/janisto/env)

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

[](#installation)

If you do not have [Composer](http://getcomposer.org/), you may install it by following the instructions at [getcomposer.org](http://getcomposer.org/doc/00-intro.md#installation-nix).

You can then install this package using the following command:

```
php composer.phar require "janisto/env" "*"
```

or add

```
"janisto/env": "*"
```

to the require section of your application's `composer.json` file.

Usage
-----

[](#usage)

### web index.php

[](#web-indexphp)

```
