Packagist · packagist:vlucas/phpdotenv
vlucas/phpdotenv active
Loads environment variables from `.env` to `$_ENV` and `$_SERVER` automagically, and optionally to `getenv()`.
| Latest stable version | 5.7.0 |
|---|---|
| Published | 2026-08-24 18:07:49+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-10-08 18:59:29 UTC |
| Sources | api.osv.dev, repo.packagist.org |
Maintenance
| Activity | active |
|---|---|
| Last stable release | 2026-08-24 18:07:49 UTC · 45 days ago |
| Stable releases in the last 12 months | 3 |
| Published versions | 83 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
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 |
4.2.0 | 2021-01-20 15:11:48 UTC |
3.6.8 | 2021-01-20 14:39:46 UTC |
Showing the 20 most recent of 83 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.7.0 |
php 8.0 | 5.7.0 |
php 8.1 | 5.7.0 |
php 8.2 | 5.7.0 |
php 8.3 | 5.7.0 |
php 8.4 | 5.7.0 |
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.7.0, published on 2026-08-24. Verified by Vigia on 2026-10-08.
How do I install the latest version of vlucas/phpdotenv?
Run composer require vlucas/phpdotenv. The latest stable version is 5.7.0 (verified 2026-10-08).
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.7.0 declares this requirement: PHP ^7.2.5 || ^8.0.
Does vlucas/phpdotenv 5.7.0 have known vulnerabilities?
No known advisories affect vlucas/phpdotenv 5.7.0 according to the data Vigia checks.
Is vlucas/phpdotenv still maintained?
vlucas/phpdotenv published 3 stable releases in the last 12 months; the most recent was 45 days ago. Activity: active.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- carbonphp/carbon-doctrine-types
- phpoption/phpoption
- symfony/uid
- symfony/polyfill-php83
- doctrine/deprecations
- symfony/clock
- symfony/polyfill-uuid
- league/flysystem-local
- league/mime-type-detection
- nette/utils
- symfony/filesystem
- dragonmantank/cron-expression
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}