aqlx86 / envchecker by aqlx86

laravel env file checker
50,323
4
2
Package Data
Maintainer Username: aqlx86
Maintainer Contact: aqlx86@gmail.com (Arnel Labarda)
Package Create Date: 2016-02-14
Package Last Update: 2021-12-30
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-30 15:12:51
Package Statistics
Total Downloads: 50,323
Monthly Downloads: 2,117
Daily Downloads: 87
Total Stars: 4
Total Watchers: 2
Total Forks: 1
Total Open Issues: 0

Build Status

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