Download the PHP package fragly/laravel-envsync without Composer
On this page you can find all versions of the php package fragly/laravel-envsync. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fragly/laravel-envsync
More information about fragly/laravel-envsync
Files in fragly/laravel-envsync
Package laravel-envsync
Short Description A Laravel package that compares and syncs your .env with .env.example for safer CI/CD environments.
License MIT
Informations about the package laravel-envsync
โ๏ธ Laravel EnvSync
Compare and safely synchronize your
.envwith.env.example.
Perfect for CI/CD pipelines, team development, and clean environments.
Contents
- Features
- Installation
- Usage
- Example workflow (CI/CD)
- Configuration
- Local development (testing the package)
- About the Author
- License
๐ Features
โ
Compares .env.example โ .env
โ
Shows missing, extra, and same-as-default variables
โ
Auto-syncs .env with .env.example
โ
Makes safe backups before changes
โ
Ignores keys or patterns (APP_KEY, LOG_*, etc.)
โ
Perfect for automation (non-interactive mode for CI)
๐งฉ Installation
The serviceprovider is auto-discovered by Laravel.
๐ง Usage
๐ Compare
Example output:
JSON output (for CI)
Filter or hide sections
๐ Sync
Synchronize .env with .env.example.
Options
| Option | Description |
|---|---|
--empty |
Add missing variables with empty values instead of defaults |
--prune |
Remove keys not present in .env.example |
--no-backup |
Skip creating .env.bak.* backup |
--yes |
Non-interactive (for CI/CD) |
--json |
Output result in JSON |
--ignore= |
Comma-separated ignore list (same syntax as env:diff) |
Example
๐งฐ Example workflow (CI/CD)
In your pipeline:
Keeps environment variables always in sync automatically
โ๏ธ Configuration
You can create .envsyncignore file in the project root to store patterns ignored in both commands:
๐งช Local development (testing the package)
If you want to test this package locally without publishing to Packagist:
Then install it:
Composer will symlink your package for instant updates.
๐งโ๐ป About the Author
Fragly Dev โ Building tools for modern Laravel & Next.js developers. Follow for more developer utilities, security helpers, and SaaS-ready boilerplates.
๐ License
This package is open-sourced software licensed under the MIT license.