rquadling / environment
Autoload the .env file from the project root
Installs: 194
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 2
pkg:composer/rquadling/environment
Requires
- php: ^7.4
- josegonzalez/dotenv: ^3.2
- kylekatarnls/update-helper: ^1.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16.3
- phpstan/phpstan: ^0.12
- phpunit/phpunit: ^9.2
This package is auto-updated.
Last update: 2025-10-06 20:09:34 UTC
README
An environment loader and validator used by RQuadling's various projects.
Installation
Using Composer:
composer require rquadling/environment
.env Validation
If you have a .env.example
file in the root of your project, you can enforce validation of this file against the
developer's .env
file by adding "\\RQuadling\\Environment\\Validation::postAutoloadDump"
to your
"post-autoload-dump"
in "scripts"
in your project's composer.json
.
For example:
"scripts": { "post-autoload-dump": "\\RQuadling\\Environment\\Validation::postAutoloadDump", }