PHPackages                             duncan3dc/php-env - 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. duncan3dc/php-env

ActiveLibrary

duncan3dc/php-env
=================

A small library to get environment details

1.3.0(4y ago)2289.3k↓33.2%2Apache-2.0PHPPHP ^7.3 || ^8.0

Since Sep 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/duncan3dc/php-env)[ Packagist](https://packagist.org/packages/duncan3dc/php-env)[ Docs](https://github.com/duncan3dc/php-env)[ RSS](/packages/duncan3dc-php-env/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (6)Used By (0)

php-env
=======

[](#php-env)

A small PHP library to get environment details

[![release](https://camo.githubusercontent.com/54c62a58b242b90b354a9348592aa3d67c6c8363af9dff007ec1788b9b253302/68747470733a2f2f706f7365722e707567782e6f72672f64756e63616e3364632f7068702d656e762f76657273696f6e2e737667)](https://packagist.org/packages/duncan3dc/php-env)[![build](https://github.com/duncan3dc/php-env/workflows/buildcheck/badge.svg?branch=master)](https://github.com/duncan3dc/php-env/actions?query=branch%3Amaster+workflow%3Abuildcheck)[![coverage](https://camo.githubusercontent.com/ba4c45bbe4faa2784963dc7e772225eeaa6576bdf6ba7a2aadc57f1df565dced/68747470733a2f2f636f6465636f762e696f2f67682f64756e63616e3364632f7068702d656e762f67726170682f62616467652e737667)](https://codecov.io/gh/duncan3dc/php-env)

*Read more at *

Changelog
---------

[](#changelog)

A [Changelog](CHANGELOG.md) has been available since the beginning of time

Where to get help
-----------------

[](#where-to-get-help)

Found a bug? Got a question? Just not sure how something works?
Please [create an issue](https://github.com/duncan3dc/php-env/issues) and I'll do my best to help out.
Alternatively you can catch me on [Twitter](https://twitter.com/duncan3dc)

duncan3dc/php-env for enterprise
--------------------------------

[](#duncan3dcphp-env-for-enterprise)

Available as part of the Tidelift Subscription

The maintainers of duncan3dc/php-env and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-duncan3dc-php-env?utm_source=packagist-duncan3dc-php-env&utm_medium=referral&utm_campaign=readme)

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 96.4% 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 ~451 days

Total

5

Last Release

1737d ago

Major Versions

0.1.0 → 1.0.02018-05-03

PHP version history (4 changes)0.1.0PHP ^5.6|^7.0

1.0.0PHP ^7.1

1.2.0PHP ^7.2

1.3.0PHP ^7.3 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/11dc66042513f11d1c99b1e6763f25dca84a3ff31cdbea3972b9b804a3d3d5e9?d=identicon)[duncan3dc](/maintainers/duncan3dc)

---

Top Contributors

[![duncan3dc](https://avatars.githubusercontent.com/u/546811?v=4)](https://github.com/duncan3dc "duncan3dc (54 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (2 commits)")

---

Tags

environment-variablesphpenvdotenv

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/duncan3dc-php-env/health.svg)

```
[![Health](https://phpackages.com/badges/duncan3dc-php-env/health.svg)](https://phpackages.com/packages/duncan3dc-php-env)
```

###  Alternatives

[vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$\_ENV` and `$\_SERVER` automagically.

13.5k602.4M5.4k](/packages/vlucas-phpdotenv)[symfony/dotenv

Registers environment variables from a .env file

3.8k226.7M2.3k](/packages/symfony-dotenv)[helhum/dotenv-connector

Makes it possible to set environment variables for composer projects.

1594.6M34](/packages/helhum-dotenv-connector)[m1/env

Env is a lightweight library bringing .env file parser compatibility to PHP. In short - it enables you to read .env files with PHP.

6412.0M21](/packages/m1-env)[sroze/companienv

Companion for .env files

245418.8k1](/packages/sroze-companienv)[johnathanmiller/secure-env-php

Encrypt environment files for production use.

6054.3k2](/packages/johnathanmiller-secure-env-php)

PHPackages © 2026

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