PHPackages                             cekurte/environment - 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. cekurte/environment

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

cekurte/environment
===================

A library to get the values from environment variables and process to php data types

v0.3.0(9y ago)5884.0k—5.4%3[1 issues](https://github.com/jpcercal/environment/issues)[1 PRs](https://github.com/jpcercal/environment/pulls)6MITPHPPHP &gt;=5.4

Since May 27Pushed 5y agoCompare

[ Source](https://github.com/jpcercal/environment)[ Packagist](https://packagist.org/packages/cekurte/environment)[ RSS](/packages/cekurte-environment/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (18)Used By (6)

Environment
===========

[](#environment)

[![Build Status](https://camo.githubusercontent.com/b2b00971d736550ca4201dde6ac3950b15da1b1baa5ba0d3f6397fdf731fbe63/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a7063657263616c2f656e7669726f6e6d656e742f6d61737465722e7376673f7374796c653d737175617265)](http://travis-ci.org/jpcercal/environment)[![Code Climate](https://camo.githubusercontent.com/1d918dbc1076b6c3b11262ee3645510eb7ee6a73149b4ea6da03cd11674b99e5/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6a7063657263616c2f656e7669726f6e6d656e742f6261646765732f6770612e737667)](https://codeclimate.com/github/jpcercal/environment)[![Coverage Status](https://camo.githubusercontent.com/c4100ba6a4580950a7d92a10c80af1d8b4fccf9cd427bf5511a801da9dab72aa/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6a7063657263616c2f656e7669726f6e6d656e742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/jpcercal/environment?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/d4716ce3e5571583b9016ce9a6d82ba746e00e65c5289662409825d8d66fa018/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63656b757274652f656e7669726f6e6d656e742e7376673f7374796c653d737175617265)](https://packagist.org/packages/cekurte/environment)[![License](https://camo.githubusercontent.com/56eb675a568d4da9787342c28ed55f5244ddf1662487a918905a090ebfc2408e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f63656b757274652f656e7669726f6e6d656e742e7376673f7374796c653d737175617265)](https://packagist.org/packages/cekurte/environment)[![SensioLabsInsight](https://camo.githubusercontent.com/a4aa7c7b11eb7782872f71e6d9ef6fd133b117dfce1cc237874ef7cb7cb17a58/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f36396364653537392d333166612d346236342d613264652d6362643664623439626237352f6d696e692e706e67)](https://insight.sensiolabs.com/projects/69cde579-31fa-4b64-a2de-cbd6db49bb75)

- A simple library (with all methods covered by php unit tests) to increase the power of your environment variables, **contribute with this project**!

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

[](#installation)

- The package is available on [Packagist](http://packagist.org/packages/cekurte/environment).
- The source files is [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) compatible.
- Autoloading is [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md) compatible.

```
composer require cekurte/environment
```

Documentation
-------------

[](#documentation)

Setup your variables to PHP with `putenv("KEY=VALUE")` or put your environment variables into OS directly. Additionally you can use this library to perform this task [vlucas/phpdotenv](https://github.com/vlucas/phpdotenv) (we recommend that you use this library).

And now, use our library to get values and increase the power of your environment variables.

```
