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. [Utility &amp; Helpers](/categories/utility)
4. /
5. php-prosvirin-dev/laravel-env-sync

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

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

Sync .env.example with .env file in Laravel

v1.0.0(3mo ago)41271MITPHPPHP ^8.1

Since Mar 23Pushed 3mo agoCompare

[ 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 3w ago

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

40

—

FairBetter than 86% of packages

Maintenance82

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community7

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

92d 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

[laravel/ai

The official AI SDK for Laravel.

9782.1M161](/packages/laravel-ai)[illuminate/queue

The Illuminate Queue package.

20432.2M1.5k](/packages/illuminate-queue)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)[flarum/core

Delightfully simple forum software.

201.4M2.2k](/packages/flarum-core)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

4821.5k](/packages/erag-laravel-lang-sync-inertia)

PHPackages © 2026

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