aqlx86 / envchecker
laravel env file checker
Fund package maintenance!
paypal.me/aqlx86
Installs: 63 765
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=5.5.9
- josegonzalez/dotenv: ^2.0
Requires (Dev)
- phpspec/phpspec: ~2.0
README
Introduction
Simple Laravel 5 package that checks if your .env
file is outdated.
Installation
Add Envchecker to your composer.json file:
composer.phar require "aqlx86/envchecker"
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