Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (15) | Download .zip | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 47 This week: 1 | All time: 10,704 This week: 560 |
Version | License | PHP version | Categories | |||
envchecker 1.0.0 | MIT/X Consortium ... | 5 | PHP 5, Files and Folders, Libraries |
Description | Author | |||
This package can check if variables in a .env file are outdated. Innovation Award
|
Simple Laravel 5 package that checks if your .env
file is outdated.
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
Files |
File | Role | Description | ||
---|---|---|---|---|
spec (1 directory) | ||||
src (1 directory) | ||||
tests (2 files) | ||||
.travis.yml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
phpspec.yml | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files | / | spec | / | EnvChecker |
File | Role | Description |
---|---|---|
EnvCheckerSpec.php | Class | Class source |
EnvSpec.php | Class | Class source |
Files | / | src | / | EnvChecker |
File | Role | Description | ||
---|---|---|---|---|
Commands (1 file) | ||||
Config (1 file) | ||||
Exception (1 file) | ||||
Env.php | Class | Class source | ||
EnvChecker.php | Class | Class source | ||
EnvCheckerServiceProvider.php | Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.