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

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

primal/environment
==================

Very basic environmental settings management library

06[1 issues](https://github.com/PrimalPHP/Environment/issues)PHP

Since Nov 13Pushed 13y ago1 watchersCompare

[ Source](https://github.com/PrimalPHP/Environment)[ Packagist](https://packagist.org/packages/primal/environment)[ RSS](/packages/primal-environment/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#Primal.Environment

Created and Copyright 2012 by Jarvis Badgley, chiper at chipersoft dot com.

Environment is a very simple data storage class for saving and retrieving environmental configuration variables, such as would be defined in a project's config file.

- Any value can be stored or retrieved by calling a function with the name, prefixed by get or set.
- Example: `$env->setConvertPath('/path/to/convert')` or `$env->getConvertPath()`
- Values can also be set or retrieved directly by name: `$env->convertPath`
- Set functions return $this to allow chaining
- Any undefined value will retrieve as `null`

\##Example:

```
//config.php
Environment::Singleton()
    ->setName('development')
    ->setDBName('PrimalTest')
    ->setDBUser('php')
    ->setDBPassword('Ornare856')
    ->setDebug(true)
;
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31834882?v=4)[ChiperSoft](/maintainers/ChiperSoft)[@ChiperSoft](https://github.com/ChiperSoft)

---

Top Contributors

[![Twipped](https://avatars.githubusercontent.com/u/231157?v=4)](https://github.com/Twipped "Twipped (4 commits)")

### Embed Badge

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

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

###  Alternatives

[joetannenbaum/mr-clean

23044.5k](/packages/joetannenbaum-mr-clean)

PHPackages © 2026

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