# vlucas/phpdotenv

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

Canonical: https://starboard.codevetter.com/explore/vlucas/phpdotenv

[Back to Discover](https://starboard.codevetter.com/discover)

![vlucas](https://avatars.githubusercontent.com/u/187?v=4&s=40)

vlucas

# phpdotenv

[View on GitHub
](https://github.com/vlucas/phpdotenv)

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

configuration
dotenv
environment
environment\-variables
hacktoberfest
php


14k stars

PHP

Updated 3d ago

Created Jan 23, 2013

## Star history

\+18 stars
0\.1% growth


## Detected tools

[GitHub Actions](https://starboard.codevetter.com/tools/github-actions)


Tool detection is evidence\-based, not a full runtime audit\. Package manifests, lockfiles, and SBOMs are high\-confidence; README, topics, and AI metadata are lower\-confidence signals\. Repository language is metadata, not counted as a tool\. Accuracy varies by ecosystem, especially for C/C\+\+ and custom monorepos\.

- GitHub Actions  · 88% confidence · Sources: \.github/workflows/static\.yml, \.github/workflows/tests\.yml · Detected Jul 23, 2026

## Similar projects

[![caarlos0](https://avatars.githubusercontent.com/u/245435?v=4&s=24)

caarlos0/ env

A simple, zero\-dependencies library to parse environment variables into structs

Go 6\.4k 63%](https://starboard.codevetter.com/explore/caarlos0/env)[![motdotla](https://avatars.githubusercontent.com/u/3848?v=4&s=24)

motdotla/ dotenv

Loads environment variables from \.env for nodejs projects\.

JavaScript 21k 66%](https://starboard.codevetter.com/explore/motdotla/dotenv)[![theskumar](https://avatars.githubusercontent.com/u/236356?v=4&s=24)

theskumar/ python\-dotenv

Reads key\-value pairs from a \.env file and can set them as environment variables\. It helps in developing applications following the 12\-factor principles\.

Python 8\.9k 62%](https://starboard.codevetter.com/explore/theskumar/python-dotenv)[![joho](https://avatars.githubusercontent.com/u/4092?v=4&s=24)

joho/ godotenv

A Go port of Ruby's dotenv library \(Loads environment variables from \.env files\)

Go 11k 62%](https://starboard.codevetter.com/explore/joho/godotenv)[![codeigniter4](https://avatars.githubusercontent.com/u/44521256?v=4&s=24)

codeigniter4/ CodeIgniter4

Open Source PHP Framework \(originally from EllisLab\)

PHP 6\.0k 60%](https://starboard.codevetter.com/explore/codeigniter4/CodeIgniter4)[![phalcon](https://avatars.githubusercontent.com/u/1221505?v=4&s=24)

phalcon/ cphalcon

High performance, full\-stack PHP framework delivered as a C extension\.

PHP 11k 60%](https://starboard.codevetter.com/explore/phalcon/cphalcon)[![bkeepers](https://avatars.githubusercontent.com/u/173?v=4&s=24)

bkeepers/ dotenv

A Ruby gem to load environment variables from \`\.env\`\.

Ruby 6\.8k 63%](https://starboard.codevetter.com/explore/bkeepers/dotenv)[![php\-fig](https://avatars.githubusercontent.com/u/468401?v=4&s=24)

php\-fig/ simple\-cache

PHP 8\.1k 59%](https://starboard.codevetter.com/explore/php-fig/simple-cache)
