phpdotenv
https://github.com/vlucas/phpdotenv
PHP
Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
PHP not yet supported2 Subscribers
Add a CodeTriage badge to phpdotenv
Help out
- Issues
- Add `withDefault` method & caster for Validator
- feat(validator): add isUrl() and isEmail() validators with tests
- EntryParser.php parse syntax error in PHP8.4
- Raw byte string in phpdotenv?
- Improve .env error feedback for unquoted values with spaces (e.g. APP_NAME = My App)
- Fix formatting of Composer installation command
- Dotenv should gracefully handle or ignore shell-escaped and multiline environment values
- [Discussion] Is using phpdotenv a replacement for a `config.php`?
- strange behavior with ImmutableWriter::isExternallyDefined()
- How should I use `notEmpty`?
- Docs
- PHP not yet supported