PHP Classes
elePHPant
Icontem

Laravel Env Testing: Check if variables in a .env file are outdated

Recommend this page to a friend!

  Author Author  
Name: Arnel Labarda <contact>
Classes: 6 packages by
Country: Philippines Philippines
Innovation award
Innovation award
Nominee: 3x


  Detailed description   Download Download .zip .tar.gz  
This package can check if variables in a .env file are outdated.

It can take the name of a given file with environment variable values and check if the current environment values and the same or there were some changes.

The package can exclude optional variables from the checking process.

Details

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

  Classes of Arnel Labarda  >  Laravel Env Testing  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Laravel Env Testing
Base name: envchecker
Description: Check if variables in a .env file are outdated
Version: -
PHP version: 5
License: MIT/X Consortium License
 
  Groups   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Files and Folders Listing, accessing and manipulating files and folders View top rated classes
Group folder image Libraries Frameworks and libraries of cooperating classes View top rated classes


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder imagespec (1 directory)
Files folder imagesrc (1 directory)
Files folder imagetests (2 files)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file phpspec.yml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

Download Download all files: envchecker.tar.gz envchecker.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.