PHP Classes
elePHPant
Icontem

File: README.md

Recommend this page to a friend!
  Classes of Arnel Labarda  >  Laravel Env Testing  >  README.md  >  Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Laravel Env Testing
Check if variables in a .env file are outdated
Author: By
Last change:
Date: 5 months ago
Size: 1,185 bytes
 

Contents

Class file image Download

Build Status

Introduction

Simple Laravel 5 package that checks if your .env file is outdated.

Installation

Add Envchecker to your composer.json file:



Add the service provider to your Laravel application config:

EnvChecker\EnvCheckerServiceProvider::class


Configuration
-------------

php artisan vendor:publish --provider="EnvChecker\EnvCheckerServiceProvider"


Update `config/envchecker.php`

return [

// template env file path
'example' => base_path('.env.example'),
// local env file
'local' => base_path('.env'),
// optional env vars
'optional' => []

];


Usage
-----

php artisan env:check


Sample Output

template file contains new values. +------------------+---------------+ | New Keys | Default Value | +------------------+---------------+ | MAIL_PORT | 2525 | | MAIL_ENCRYPTION2 | null | +------------------+---------------+


Test
----

PHPSpec

./bin/phpspec run


Todo PHPUnit