Skip to content
CAI
Produce a survey ↗Verify a survey

vlucas/phpdotenv

This system is a PHP library for managing environment variables, providing robust parsing, loading, and validation capabilities. It supports reading from various sources including files, server variables, and environment constants through a modular adapter and repository architecture. The library emphasizes strict type safety and error handling through specific exception classes and a comprehensive validation API.

68.4

Adequate · 2 August 2026

2.9k

lines of production code

PHP

primary language

1

bus factor · 65 authors in all

3

measurements over time

CAI band scale
CAI trend line

How it got here

2013 · PHP 7.2 upgrade and validation

The project upgraded its PHP version requirement to 7.2.5 and modernized its architecture by introducing a Validator class and factory methods for environment variable handling. This period also established comprehensive test coverage for the new validation logic and updated dependencies, while cleaning up obsolete test fixtures and configuration files.

6 changes

2015–2019 · Repository and Store abstraction

This period focused on a comprehensive architectural refactoring to decouple environment variable handling from specific file systems and sources. The codebase introduced a flexible adapter-based repository system and a dedicated store layer, enabling support for diverse environment sources like Apache, environment constants, and various file formats. These changes were accompanied by expanded test coverage and the introduction of granular exception classes to improve error handling.

7 changes

2020 · Parser refactoring and test coverage

This period focused on refactoring the .env file parser into a modular, single-responsibility architecture and introducing utility classes for regex and string operations. Comprehensive unit tests were added across the parser, store, and repository components to ensure robustness and correct handling of edge cases.

6 changes

CAI lens gauges

Survey your own repository

vlucas/phpdotenv was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point the surveyor at a repository you know and see whether you agree with it.

Survey a repository

About this page

  • The description of this project is derived from its own commit history, not from its README.
  • The score is its highest published measurement, taken on 2 August 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 416df70283 — the exact code this score is about.
  • Scored under rubric rubric-2026.08.18. Score the same commit under that rubric and you get the same number.
CAI link cards