rquadling / environment
There is no license information available for the latest version (v2.0.1) of this package.
Autoload the .env file from the project root
v2.0.1
2020-07-09 00:07 UTC
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: 2024-12-06 18:28:27 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", }