php-prosvirin-dev/laravel-env-sync
Larablocks Analysis
php-prosvirin-dev/laravel-env-sync works with Laravel 10 to 13 (latest release v1.0.0, Mar 23, 2026).
Recommendation checks
PromisingPromising: 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 |
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
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.0.0 | ^8.1 | ^10.0| | MIT |