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(10mo ago)0232MITPHPPHP ^8.2

Since Jan 27Pushed 10mo ago1 watchersCompare

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

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

33

—

LowBetter than 72% of packages

Maintenance54

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

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

308d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25077813?v=4)[Chance007](/maintainers/Chance007)[@CHANCE007](https://github.com/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

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49617.1k](/packages/blackfire-player)[altis/local-server

Local Server module for Altis

18221.6k3](/packages/altis-local-server)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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