PHPackages                             php-prosvirin-dev/laravel-env-sync - 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. php-prosvirin-dev/laravel-env-sync

ActiveLibrary

php-prosvirin-dev/laravel-env-sync
==================================

Sync .env.example with .env file in Laravel

v1.0.0(yesterday)01↓100%MITPHPPHP ^8.1

Since Mar 23Pushed yesterdayCompare

[ Source](https://github.com/php-prosvirin-dev/laravel-env-sync)[ Packagist](https://packagist.org/packages/php-prosvirin-dev/laravel-env-sync)[ RSS](/packages/php-prosvirin-dev-laravel-env-sync/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (6)Versions (2)Used By (0)

Laravel Env Sync
================

[](#laravel-env-sync)

A Laravel package that synchronizes your .env.example with .env file.

Features
--------

[](#features)

- Auto-sync - Adds missing variables from .env.example to .env
- No overwrites - Preserves existing values
- Extra variables detection
- Backup support before force sync
- Interactive add new variables
- Interactive remove variables
- Force sync with backup

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Laravel 10.x or 11.x

Installation
------------

[](#installation)

```
composer require php-prosvirin-dev/laravel-env-sync --dev
```

Usage
-----

[](#usage)

Basic sync:

```
php artisan env:sync
```

Force sync with backup:

```
php artisan env:sync --force
```

Add new variable:

```
php artisan env:sync --add
```

Remove variable:

```
php artisan env:sync --remove
```

CI/CD Integration
-----------------

[](#cicd-integration)

Use this package in your CI/CD pipeline to ensure .env files are always in sync with .env.example:

```
name: Check Environment Consistency

on: [push, pull_request]

jobs:
  check-env:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Install Dependencies
        run: composer install

      - name: Check .env Consistency
        run: |
          php artisan env:sync
          git diff --exit-code
```

License
-------

[](#license)

MIT

###  Health Score

39

—

LowBetter than 87% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

1d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f750a69d1d565de9a1fe3c5d2be0aa2165f36140a805236bd8cea50fbc35228f?d=identicon)[php-prosvirin-dev](/maintainers/php-prosvirin-dev)

---

Top Contributors

[![php-prosvirin-dev](https://avatars.githubusercontent.com/u/253578725?v=4)](https://github.com/php-prosvirin-dev "php-prosvirin-dev (11 commits)")

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/php-prosvirin-dev-laravel-env-sync/health.svg)

```
[![Health](https://phpackages.com/badges/php-prosvirin-dev-laravel-env-sync/health.svg)](https://phpackages.com/packages/php-prosvirin-dev-laravel-env-sync)
```

###  Alternatives

[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

20887.0k](/packages/erag-laravel-disposable-email)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[cbaconnier/laravel-mvc-to-ddd

Automatically change the default Laravel MVC architecture to DDD architecture

201.1k](/packages/cbaconnier-laravel-mvc-to-ddd)

PHPackages © 2026

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