PHPackages                             bmitch/envsync - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. bmitch/envsync

ActivePackage[Utility &amp; Helpers](/categories/utility)

bmitch/envsync
==============

Environment variable checker for Laravel.

0.0.4(9y ago)146[7 issues](https://github.com/bmitch/envsync/issues)MITPHPPHP &gt;=5.6.4

Since Oct 30Pushed 9y ago1 watchersCompare

[ Source](https://github.com/bmitch/envsync)[ Packagist](https://packagist.org/packages/bmitch/envsync)[ RSS](/packages/bmitch-envsync/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (7)Versions (7)Used By (0)

Env Syncer
==========

[](#env-syncer)

[![Build Status](https://camo.githubusercontent.com/e68b7c88b95f0637231d58916e0e2e5500f81e2e3e60dd25be5ca98aeb92a40a/68747470733a2f2f7472617669732d63692e6f72672f626d697463682f656e7673796e632e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bmitch/envsync)[![Code Climate](https://camo.githubusercontent.com/86ccce5fa7cb70d79668d9f90b3462a787807d568f606601c32c618457ff5509/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f626d697463682f656e7673796e632f6261646765732f6770612e737667)](https://codeclimate.com/github/bmitch/envsync)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/523d82503ccebe4f3e5f1993b24a082772c53fff8715c40e9fd7aa620106100a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f626d697463682f656e7673796e632f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/bmitch/envsync/?branch=master)[![codecov](https://camo.githubusercontent.com/1d168344cf652187a071796366b2a4f54458159e173c6ba68b3bf48749a46018/68747470733a2f2f636f6465636f762e696f2f67682f626d697463682f656e7673796e632f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/bmitch/envsync)

What is it?
-----------

[](#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.

How to install
--------------

[](#how-to-install)

`composer require --dev bmitch/envsync`

How to use
----------

[](#how-to-use)

envsync has 3 different modes:

### Default Mode

[](#default-mode)

Run `vendor/bin/envsync ` where `` is where your source code is. You will see the following report like this:

```
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

[](#ci-mode)

Run `vendor/bin/envsync  ci ` where `` is where your source code is. You will see the same report as above but without the "In .env" column:

```
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.

### Deploy Mode

[](#deploy-mode)

Run `vendor/bin/envsync  deploy ` where `` is where your source code is. You will see the same report as the first one above but without the "In .env.example" column:

```
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.

#### Bugs, Features, Fixes, Feedback, Comments

[](#bugs-features-fixes-feedback-comments)

Please feel free to contribute.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~10 days

Total

3

Last Release

3505d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/581585b68bc8e4418bfefd6918579de4b277539f1c98a478bf044750eb64ae93?d=identicon)[bmitch](/maintainers/bmitch)

---

Top Contributors

[![bmitch](https://avatars.githubusercontent.com/u/4009957?v=4)](https://github.com/bmitch "bmitch (59 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/bmitch-envsync/health.svg)

```
[![Health](https://phpackages.com/badges/bmitch-envsync/health.svg)](https://phpackages.com/packages/bmitch-envsync)
```

###  Alternatives

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

101466.4k45](/packages/friendsoftypo3-content-blocks)[php-soap/wsdl

Deals with WSDLs

183.8M18](/packages/php-soap-wsdl)[phel-lang/phel-lang

Phel is a functional programming language that compiles to PHP

5155.1k17](/packages/phel-lang-phel-lang)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
