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

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

henrik/environment
==================

environment

1.0.1(6y ago)033MITPHP

Since Sep 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/HenrikKarapetyan/environment)[ Packagist](https://packagist.org/packages/henrik/environment)[ RSS](/packages/henrik-environment/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

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

[](#environment)

The basic usage of library

Here is our simple.ini file
---------------------------

[](#here-is-our-simpleini-file)

```
[app]
env=dev
environments[]=dev
environments[]=prod
environments[]=local

[parameters]
basePath = /..
viewDirectory = ${parameters:basePath}/templates
serviceExcludedPaths[] = Core
serviceExcludedPaths[] = Entity
serviceExcludedPaths[] = Repository
sourcesRootPath = ${parameters:basePath}/src
assetsDir = ${parameters:basePath}/public
rootNamespace = \Hk\App
sessionSavePath = ${parameters:basePath}/var/session/
logsSaveDirectory = ${parameters:basePath}/var/logs/
[services]
Hk\App\FignyaInterface = \Hk\App\Fignya
```

```
$iniConfigParser = new IniEnvironmentParser();
$env             = new Environment($iniConfigParser);
$env->load(__DIR__.'/stubs/env.ini');

//here parameters is our section name
//get method returns array of parameters in this point
//and we can work with them as php assoc array
$env->get('parameters')['basePath'];
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2443d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c5ad544582eca51b18e01f9c92fb31557ac684115cfed9be800df8a146b3655?d=identicon)[henrikkarapetyan](/maintainers/henrikkarapetyan)

---

Top Contributors

[![henrikkarapetyan-dev](https://avatars.githubusercontent.com/u/58356767?v=4)](https://github.com/henrikkarapetyan-dev "henrikkarapetyan-dev (2 commits)")

### Embed Badge

![Health badge](/badges/henrik-environment/health.svg)

```
[![Health](https://phpackages.com/badges/henrik-environment/health.svg)](https://phpackages.com/packages/henrik-environment)
```

###  Alternatives

[davmixcool/laravel-meta-manager

Laravel Meta Manager is an SEO tool that is used to improve SEO of a website or specific page by adding recommended meta tags to your application.

15040.8k1](/packages/davmixcool-laravel-meta-manager)[michaldudek/foundation

A set of useful PHP classes.

13111.9k13](/packages/michaldudek-foundation)[thunder/thunder-project

Project template for Thunder projects with composer

1039.4k](/packages/thunder-thunder-project)[codefog/contao-instagram

Instagram bundle for Contao Open Source CMS

167.5k](/packages/codefog-contao-instagram)[aura/includer

Include multiple files from specified directories, in order, with variables extracted into a limited include scope.

133.2k](/packages/aura-includer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
