Ratings | | Unique User Downloads | | Download Rankings |
Not yet rated by the users | | Total: 45 | | All time: 10,617 This week: 156 |
|
Description | | Author |
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. Innovation Award
 January 2019
Winner
Prize: SourceGuarding PHP encoder tool |
Laravel applications use environment variables set with application configuration values in a way that is faster to load by application scripts that use this framework.
Usually the environment variables are loaded from files in the .env format.
When an application needs to be updated to use new configuration values, the environment files need to be updated.
This package can check if there are environment variables with new values and updates a .env file to have all the updated values.
Manuel Lemos |
| |
 |
|
Innovation award
 Nominee: 4x
Winner: 1x |
|
Details

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
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.