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

This package is auto-updated.

Last update: 2024-04-09 09:23:23 UTC


README

Build Status Code Coverage GitHub issues

PHP Version Stable Version

Total Downloads Monthly Downloads Daily Downloads

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",
  }