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

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

rquadling/environment
=====================

Autoload the .env file from the project root

v2.0.1(5y ago)0195[1 issues](https://github.com/rquadling/environment/issues)[1 PRs](https://github.com/rquadling/environment/pulls)3PHPPHP ^7.4

Since Dec 23Pushed 1y ago1 watchersCompare

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

READMEChangelog (6)Dependencies (5)Versions (8)Used By (3)

RQuadling/Environment
=====================

[](#rquadlingenvironment)

[![Build Status](https://camo.githubusercontent.com/fcaefad7c3c8109ee4bb4d21a59e3ef7b8546806c02258a5c949ece21032a501/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f72717561646c696e672f656e7669726f6e6d656e742e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d747261766973)](https://travis-ci.org/rquadling/environment)[![Code Coverage](https://camo.githubusercontent.com/351d40508e3a0a8dc4e5b01b3969ce3c460d520991fcd0b41831cb13f797526e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f72717561646c696e672f656e7669726f6e6d656e742e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d7363727574696e697a6572)](https://scrutinizer-ci.com/g/rquadling/environment/)[![GitHub issues](https://camo.githubusercontent.com/dbf9c7d3671155caf0fa2d557a1920abd3d24438f7f5671d8351745c79d54c7e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f72717561646c696e672f656e7669726f6e6d656e742e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562)](https://github.com/rquadling/environment/issues)

[![PHP Version](https://camo.githubusercontent.com/4c6a3741766c033b9cd95c9c8ba8fea9d090e81e89e884902dc246eb5f3975af/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f72717561646c696e672f656e7669726f6e6d656e742e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/rquadling/environment)[![Stable Version](https://camo.githubusercontent.com/37250354fcd70f5c136ffa1ec41840da4ea20265aac0714ee78b033b4a217812/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72717561646c696e672f656e7669726f6e6d656e742e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d4c6174657374)](https://packagist.org/packages/rquadling/environment)

[![Total Downloads](https://camo.githubusercontent.com/502a898fe010533bf4ebca40e23ee92808fdc9c7d530fd9520bc8b09ace49525/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72717561646c696e672f656e7669726f6e6d656e742e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d546f74616c2b646f776e6c6f616473)](https://packagist.org/packages/rquadling/environment)[![Monthly Downloads](https://camo.githubusercontent.com/82613c1e5eaf8f8bc5c77b69ace8c82ecc16c1ebbd8b95ade538fe8e01e611b3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f72717561646c696e672f656e7669726f6e6d656e742e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d4d6f6e74686c792b646f776e6c6f616473)](https://packagist.org/packages/rquadling/environment)[![Daily Downloads](https://camo.githubusercontent.com/b2ad1165e3ea5c00766362ecb5ef53938bd6ddeaa8580201574f3c2636894ff1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64642f72717561646c696e672f656e7669726f6e6d656e742e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d4461696c792b646f776e6c6f616473)](https://packagist.org/packages/rquadling/environment)

An environment loader and validator used by RQuadling's various projects.

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

[](#installation)

Using Composer:

```
composer require rquadling/environment
```

.env Validation
---------------

[](#env-validation)

If you have a `.env.example` file in the root of your project, you can enforce validation of this file against the developer's `.env` file by adding `"\\RQuadling\\Environment\\Validation::postAutoloadDump"` to your `"post-autoload-dump"` in `"scripts"` in your project's `composer.json`.

For example:

```
  "scripts": {
    "post-autoload-dump": "\\RQuadling\\Environment\\Validation::postAutoloadDump",
  }
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Recently: every ~50 days

Total

6

Last Release

2140d ago

Major Versions

v1.0.3 → v2.0.02020-06-22

PHP version history (2 changes)v1.0.0PHP ^7

v2.0.0PHP ^7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c385f24d4f13c86b9c3e54c61b2532189c1ffb3099a8e63738fd75de90b20ba?d=identicon)[RQuadling](/maintainers/RQuadling)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[wp-sync-db/wp-sync-db-cli

WP Sync DB CLI Addon

9252.8k](/packages/wp-sync-db-wp-sync-db-cli)

PHPackages © 2026

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