Registers environment variables from a .env file
Alternatives To Dotenv
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Dotenv3,5845,4641,1764 days ago243April 01, 2022mitPHP
Registers environment variables from a .env file
Dotenv Connector13423222 years ago20September 01, 20201mitPHP
Makes values from a .env file available as environment variables for composer based projects
Symfony Minimal Distribution74
7 years agomitPHP
This contains the code from my blog post
6 years agoSeptember 25, 2022mitPHP
[UNMAINTAINED] Runtime retrieval of parameters from environment variables for Symfony
Symfonyflex Bridge29694 months ago15January 27, 20213mitPHP
Bridge library for running Symfony Flex on
a year agomitPHP
Symfony 5 template for
Magento Dotenv5
a year ago4April 01, 2022mitPHP
Magento 2 Environment Variable Component - Implementing Symfony Dotenv
2 years agoPHP
A small package to handle secrets.
Consul Php Envvar2
5 years ago1mitPHP
Define missing environment variables from Consul KV and expose them in Symfony 3.2+ containers
Alternatives To Dotenv
Select To Compare

Alternative Project Comparisons

Dotenv Component

Symfony Dotenv parses .env files to make environment variables stored in them accessible via $_SERVER or $_ENV.

Getting Started

$ composer require symfony/dotenv
use Symfony\Component\Dotenv\Dotenv;

$dotenv = new Dotenv();

// you can also load several files
$dotenv->load(__DIR__.'/.env', __DIR__.'/');

// overwrites existing env variables

// loads .env, .env.local, and .env.$APP_ENV.local or .env.$APP_ENV


Popular Environment Variables Projects
Popular Symfony Projects
Popular Configuration Management Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Environment Variables
Symfony Component