2017 © Pedro Peláez
 

package envsync

Environment variable checker for Laravel.

image

bmitch/envsync

Environment variable checker for Laravel.

  • Thursday, November 24, 2016
  • by bmitch
  • Repository
  • 1 Watchers
  • 2 Stars
  • 33 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 7 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Env Syncer

Build Status Code Climate Scrutinizer Code Quality codecov, (*1)

What is it?

envsync is a tool that can be used in your CI and/or deploy build scripts to help make sure your environment variables that are defined in your Laravel source code, .env and .env.example files are up to date., (*2)

How to install

composer require --dev bmitch/envsync, (*3)

How to use

envsync has 3 different modes:, (*4)

Default Mode

Run vendor/bin/envsync <folder> where <folder> is where your source code is. You will see the following report like this:, (*5)

EnvSyncer Report - https://github.com/bmitch/envsync
+----------+-----------+-----------------+---------+
| Variable | In Source | In .env.example | In .env |
+----------+-----------+-----------------+---------+
| FOO      | No        | No              | Yes     |
| BAR      | No        | Yes             | No      |
| BAZ      | Yes       | No              | No      |
+----------+-----------+-----------------+---------+

CI Mode

Run vendor/bin/envsync <folder> ci where <folder> is where your source code is. You will see the same report as above but without the "In .env" column:, (*6)

EnvSyncer Report - https://github.com/bmitch/envsync
+----------+-----------+-----------------+
| Variable | In Source | In .env.example |
+----------+-----------+-----------------+
| FOO      | No        | No              |
| BAR      | No        | Yes             |
| BAZ      | Yes       | No              |
+----------+-----------+-----------------+

If any of the environemnt variables defined in your source code are NOT defined in your .env.example file then the command will exit with a 1, failing your CI script., (*7)

Deploy Mode

Run vendor/bin/envsync <folder> deploy where <folder> is where your source code is. You will see the same report as the first one above but without the "In .env.example" column:, (*8)

EnvSyncer Report - https://github.com/bmitch/envsync
+----------+-----------+---------+
| Variable | In Source | In .env |
+----------+-----------+---------+
| FOO      | No        | Yes     |
| BAR      | No        | No      |
| BAZ      | Yes       | No      |
+----------+-----------+---------+

If any of the environment variables defined in your source code are NOT defined in your .env file then the command will exit with a 1, failing your deploy script., (*9)

Bugs, Features, Fixes, Feedback, Comments

Please feel free to contribute., (*10)

The Versions

24/11 2016

dev-master

9999999-dev

Environment variable checker for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bill Mitchell

24/11 2016

0.0.4

0.0.4.0

Environment variable checker for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bill Mitchell

24/11 2016

dev-changeConsoleVer

dev-changeConsoleVer

Environment variable checker for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bill Mitchell

10/11 2016

dev-composerfix

dev-composerfix

Environment variable checker for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bill Mitchell

09/11 2016

0.0.3

0.0.3.0

Environment variable checker for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bill Mitchell

05/11 2016

0.0.2

0.0.2.0

Environment variable checker for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bill Mitchell

30/10 2016

dev-tests

dev-tests

Environment variable checker for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bill Mitchell