New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

php-prosvirin-dev/laravel-env-sync

Sync .env.example with .env file in Laravel
1,028 4

Larablocks Analysis

php-prosvirin-dev/laravel-env-sync works with Laravel 10 to 13 (latest release v1.0.0, Mar 23, 2026).

Promising: maintained and up to date, meets 2 of 4 checks; not yet widely used.

  • Works with Laravel 13, the current version
  • Released in the last 12 months (Mar 23, 2026)
  • 109 downloads a month (needs 10,000)
  • 4 GitHub stars (needs 100)

State

Maintained
  • Last stable release: Mar 23, 2026.
  • 1 release in the last 12 months.
  • First released: Mar 23, 2026.
  • Monthly downloads: 109.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.

Install
composer require php-prosvirin-dev/laravel-env-sync
Latest Version:v1.0.0
PHP:^8.1
Laravel:10 – 13
License:MIT
Last Updated:Mar 23, 2026
Links: GitHub  ·  Packagist
Maintainer: php-prosvirin-dev

Laravel Env Sync

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

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

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

Installation

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

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

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

MIT

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released PHP Laravel License
v1.0.0 ^8.1 ^10.0|^11.0|^12.0|^13.0 MIT