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

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

horat1us/environment-config
===========================

Environment Config class

1.6.0(11mo ago)315.0k[1 issues](https://github.com/Horat1us/environment-config/issues)18MITPHPPHP &gt;=8.4CI failing

Since Apr 11Pushed 11mo ago2 watchersCompare

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

READMEChangelog (4)Dependencies (2)Versions (12)Used By (18)

Environment Config
==================

[](#environment-config)

[![Latest Stable Version](https://camo.githubusercontent.com/f4f795fd76804de06c97bb86ddbb25a9f0538f29c5a646aea24d9da6f2137728/68747470733a2f2f706f7365722e707567782e6f72672f686f7261743175732f656e7669726f6e6d656e742d636f6e6669672f762f737461626c652e706e67)](https://packagist.org/packages/horat1us/environment-config)[![Total Downloads](https://camo.githubusercontent.com/d12379bbf662b9e097d06f1c5fadc80e827b6f20f7630609152700fb4b7ef6f1/68747470733a2f2f706f7365722e707567782e6f72672f686f7261743175732f656e7669726f6e6d656e742d636f6e6669672f646f776e6c6f6164732e706e67)](https://packagist.org/packages/horat1us/environment-config)[![codecov](https://camo.githubusercontent.com/875e0f70a0307643ebb18a1be1e802793e08509415d05d4cfde267a9c20fb95f/68747470733a2f2f636f6465636f762e696f2f67682f686f7261743175732f656e7669726f6e6d656e742d636f6e6669672f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/horat1us/environment-config)[![Test & Lint](https://github.com/Horat1us/environment-config/actions/workflows/php.yml/badge.svg?branch=master)](https://github.com/Horat1us/environment-config/actions/workflows/php.yml)

Simple class to provide config using `getenv` function with prefix.

Compatibility: tested on PHP 7.1, PHP 8.1

[Changelog](./CHANGELOG.md)

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

[](#installation)

Using composer:

```
composer require horat1us/environment-config
```

Usage
-----

[](#usage)

Implement your own config class:

```
