Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Registers environment variables from a .env file

License

NotificationsYou must be signed in to change notification settings

symfony/dotenv

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

Getting Started

composer require symfony/dotenv
useSymfony\Component\Dotenv\Dotenv;$dotenv =newDotenv();$dotenv->load(__DIR__.'/.env');// you can also load several files$dotenv->load(__DIR__.'/.env',__DIR__.'/.env.dev');// overwrites existing env variables$dotenv->overload(__DIR__.'/.env');// loads .env, .env.local, and .env.$APP_ENV.local or .env.$APP_ENV$dotenv->loadEnv(__DIR__.'/.env');

Resources

About

Registers environment variables from a .env file

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp