Packagist · packagist:vlucas/phpdotenv
vlucas/phpdotenv active
Loads environment variables from `.env` to `$_ENV` and `$_SERVER` automagically, and optionally to `getenv()`.
The latest stable version of vlucas/phpdotenv is 5.8.1, published on 2026-11-23. Verified by Vigia on 2026-11-27.
| Latest stable version | 5.8.1 |
|---|---|
| Published | 2026-11-23 00:53:11+00:00 |
| Install | composer require vlucas/phpdotenv |
| Required PHP version (composer.json) | PHP ^7.2.5 || ^8.0 |
| License | BSD-3-Clause |
| Advisories on latest version | none known |
| Last verified | 2026-11-27 00:40:02 UTC |
| Sources | api.osv.dev, repo.packagist.org |
Maintenance
| Activity | active |
|---|---|
| Last stable release | 2026-11-23 00:53:11 UTC · 4 days ago |
| Stable releases in the last 12 months | 5 |
| Published versions | 85 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
5.8.1 | 2026-11-23 00:53:11 UTC |
5.8.0 | 2026-10-25 16:26:19 UTC |
5.7.0 | 2026-08-24 18:07:49 UTC |
5.6.4 | 2026-07-06 19:11:50 UTC |
5.6.3 | 2025-12-27 19:49:13 UTC |
5.6.2 | 2025-04-30 23:37:27 UTC |
5.6.1 | 2024-07-20 21:52:34 UTC |
5.6.0 | 2023-11-12 22:43:29 UTC |
5.5.0 | 2022-10-16 01:01:54 UTC |
4.3.0 | 2022-10-16 00:51:09 UTC |
5.4.1 | 2021-12-12 23:22:04 UTC |
4.2.2 | 2021-12-12 23:07:53 UTC |
3.6.10 | 2021-12-12 23:02:06 UTC |
2.6.9 | 2021-12-12 22:59:22 UTC |
5.4.0 | 2021-11-10 01:08:39 UTC |
5.3.1 | 2021-10-02 19:24:42 UTC |
4.2.1 | 2021-10-02 19:17:08 UTC |
3.6.9 | 2021-10-02 19:07:56 UTC |
2.6.8 | 2021-10-02 19:02:17 UTC |
5.3.0 | 2021-01-20 15:23:13 UTC |
Showing the 20 most recent of 85 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
php 7.4 | 5.8.1 |
php 8.0 | 5.8.1 |
php 8.1 | 5.8.1 |
php 8.2 | 5.8.1 |
php 8.3 | 5.8.1 |
php 8.4 | 5.8.1 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of vlucas/phpdotenv?
The latest stable version of vlucas/phpdotenv is 5.8.1, published on 2026-11-23. Verified by Vigia on 2026-11-27.
How do I install the latest version of vlucas/phpdotenv?
Run composer require vlucas/phpdotenv. The latest stable version is 5.8.1 (verified 2026-11-27).
Is vlucas/phpdotenv deprecated?
No. vlucas/phpdotenv is not marked as deprecated in the registry.
Which PHP version does vlucas/phpdotenv require?
vlucas/phpdotenv 5.8.1 declares this requirement: PHP ^7.2.5 || ^8.0.
Does vlucas/phpdotenv 5.8.1 have known vulnerabilities?
No known advisories affect vlucas/phpdotenv 5.8.1 according to the data Vigia checks.
Is vlucas/phpdotenv still maintained?
vlucas/phpdotenv published 5 stable releases in the last 12 months; the most recent was 4 days ago. Activity: active.
Observed changes
- Mon Nov 23 2026 01:38:14 GM +0000 (Coordinated Universal Time) — released 5.8.0 → 5.8.1
- Sun Oct 25 2026 17:24:53 GM +0000 (Coordinated Universal Time) — released 5.7.0 → 5.8.0
Related packages
- league/uri
- dragonmantank/cron-expression
- league/uri-interfaces
- carbonphp/carbon-doctrine-types
- doctrine/deprecations
- league/mime-type-detection
- phpoption/phpoption
- symfony/polyfill-uuid
- nette/utils
- nesbot/carbon
- league/flysystem-local
- symfony/uid
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/packagist/vlucas/phpdotenv) [](https://vigia.coredls.cloud/packagist/vlucas/phpdotenv) [](https://vigia.coredls.cloud/packagist/vlucas/phpdotenv)
For agents
GET https://vigia.coredls.cloud/v1/packages/packagist/vlucas/phpdotenv
GET https://vigia.coredls.cloud/v1/packages/packagist/vlucas/phpdotenv/versions/{version}