2017 © Pedro Peláez
 

library env-checker

Artisan command to check if all required variables are configured in .env

image

baopham/env-checker

Artisan command to check if all required variables are configured in .env

  • Sunday, September 13, 2015
  • by baopham
  • Repository
  • 0 Watchers
  • 0 Stars
  • 106 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

env-checker

Artisan command to check if all required variables are configured in .env by checking the .env.example, (*1)

Usage:

1) Run, (*2)

$ composer require baopham/env-checker

2) Register in your config/app.php:, (*3)

'providers' => [
    ...
    BaoPham\EnvChecker\EnvCheckerServiceProvider::class,
    ...
];

3) Update your .env.example to indicate all required variables, (*4)

4) Run the command, (*5)

$ php artisan env:check

Envoy Usage Example

Include this in your Envoy.blade.php:, (*6)

@task('deploy_dev', ['on' => 'dev'])
    cd /home/forge/app
    git fetch
    git checkout origin/dev -- config/envchecker.php
    php artisan env:check
    // If the check above fails, the script stops here.
    // else, it continues (you can continue to pull the latest code and deploy)
@endtask

Requirements:

Laravel 5.1, (*7)

License:

MIT, (*8)

Author:

Bao Pham, (*9)

The Versions

13/09 2015

dev-master

9999999-dev

Artisan command to check if all required variables are configured in .env

  Sources   Download

MIT

The Requires

 

The Development Requires