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

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

simp/environment
================

This is package for handling site configuration

v1.1.2(8mo ago)0232MITPHPPHP ^8.2

Since Jan 27Pushed 8mo ago1 watchersCompare

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

READMEChangelog (6)Dependencies (1)Versions (4)Used By (2)

Environment Library
===================

[](#environment-library)

Overview
--------

[](#overview)

The Environment Library is designed to manage configuration settings and environment variables for your PHP applications. It provides an easy-to-use interface for loading, retrieving, and setting environment variables to streamline application development.

---

Features
--------

[](#features)

- Load environment variables from files.
- Retrieve environment variables with default fallbacks.
- Dynamically set environment variables.
- Exception handling for invalid configurations.

---

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

[](#installation)

To use the Environment Library, include it in your project directory or install it via Composer:

```
composer require simp/environment
```

---

Usage
-----

[](#usage)

### Loading Environment Variables

[](#loading-environment-variables)

You can load environment variables:

```
// Save configuration
\Simp\Environment\Environment::create("server_host", [
    "host" => "localhost",
    "port" => 3306,
    "database" => "database",
    "username" => "chance_",
    "password" => "12345",
    "prefix" => "chance_"
]);

// Get configuration data.
\Simp\Environment\Environment::load('server_host')
```

License
-------

[](#license)

This project is licensed under the MIT License. See the LICENSE file for details.

---

Contribution
------------

[](#contribution)

Contributions are welcome! Please fork the repository and submit a pull request with your changes.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance59

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

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 ~213 days

Total

2

Last Release

262d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6097a3277a85cf902ab5d617af1515359091563d1d288dd969e59ca50646a782?d=identicon)[Chance007](/maintainers/Chance007)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[orchestra/canvas

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

41716.4k2](/packages/lullabot-drainpipe)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)

PHPackages © 2026

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