Download the PHP package muzammal/syncenvvariables without Composer
On this page you can find all versions of the php package muzammal/syncenvvariables. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download muzammal/syncenvvariables
More information about muzammal/syncenvvariables
Files in muzammal/syncenvvariables
Package syncenvvariables
Short Description A Laravel package to synchronize environment variables from .env.example to .env
License MIT
Informations about the package syncenvvariables
SyncEnvVariables
SyncEnvVariables is a Laravel package designed to help teams keep their .env
files synchronized with the .env.example
file. π By running a simple command, you can automatically update your local .env
file to include any new environment variables defined in .env.example
, saving time and reducing configuration errors.
β¨ Features
- π Auto-sync missing environment variables: Ensures your
.env
file includes all variables listed in.env.example
. - π Improved team collaboration: Keeps all developers up-to-date with the latest environment variables.
- π οΈ Seamless integration: Simple to install and use within any Laravel project.
π Installation
- Install the package via Composer:
π Usage
This package provides a sync:env
Artisan command, which checks your .env.example
file for any new or missing environment variables and appends them to your .env
file if they arenβt already present.
Sync Environment Variables
Run the following command to sync the environment variables:
This command will:
- Check your
.env.example
file and compare it to your.env
file. - Add any missing variables from
.env.example
to.env
, keeping your local environment configuration consistent.
π Example
Suppose your .env.example
file includes new variables such as API_KEY
and APP_ENV
. When you run:
The command will check for any missing variables in your .env
file and automatically add them. This ensures all developers have the same set of environment configurations across different environments.
π License
This package is open-source software licensed under the MIT license.