{"id":19462502,"url":"https://github.com/muzammal01/syncenvvariables","last_synced_at":"2026-01-30T00:08:50.207Z","repository":{"id":284938983,"uuid":"885333737","full_name":"Muzammal01/SyncEnvVariables","owner":"Muzammal01","description":"SyncEnvVariables is a Laravel package that automates syncing environment variables from .env.example to .env. Ideal for team projects, it ensures consistent environment settings with a single Artisan command, appending any missing variables to .env","archived":false,"fork":false,"pushed_at":"2024-11-08T12:28:17.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T14:11:09.483Z","etag":null,"topics":["automation","env-sync","environment-variables","laravel","package","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Muzammal01.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-08T11:41:07.000Z","updated_at":"2024-11-08T12:28:20.000Z","dependencies_parsed_at":"2025-03-28T15:46:09.080Z","dependency_job_id":null,"html_url":"https://github.com/Muzammal01/SyncEnvVariables","commit_stats":null,"previous_names":["muzammal01/syncenvvariables"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muzammal01%2FSyncEnvVariables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muzammal01%2FSyncEnvVariables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muzammal01%2FSyncEnvVariables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muzammal01%2FSyncEnvVariables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Muzammal01","download_url":"https://codeload.github.com/Muzammal01/SyncEnvVariables/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248992012,"owners_count":21194983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","env-sync","environment-variables","laravel","package","php"],"created_at":"2024-11-10T18:01:59.032Z","updated_at":"2026-01-30T00:08:50.177Z","avatar_url":"https://github.com/Muzammal01.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SyncEnvVariables\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/muzammal/syncenvvariables.svg?style=flat-square)](https://packagist.org/packages/muzammal/syncenvvariables)\n[![Total Downloads](https://img.shields.io/packagist/dt/muzammal/syncenvvariables.svg?style=flat-square)](https://packagist.org/packages/muzammal/syncenvvariables)\n\n**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.\n\n---\n\n## ✨ Features\n\n- 📋 **Auto-sync missing environment variables:** Ensures your `.env` file includes all variables listed in `.env.example`.\n- 🔄 **Improved team collaboration:** Keeps all developers up-to-date with the latest environment variables.\n- 🛠️ **Seamless integration:** Simple to install and use within any Laravel project.\n\n---\n\n## 🚀 Installation\n\n1. **Install the package via Composer:**\n\n   ```bash\n   composer require muzammal/syncenvvariables\n   ```\n\n---\n\n## 📘 Usage\n\nThis 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.\n\n### Sync Environment Variables\n\nRun the following command to sync the environment variables:\n\n```bash\nphp artisan sync:env\n```\n\nThis command will:\n\n- Check your `.env.example` file and compare it to your `.env` file.\n- Add any missing variables from `.env.example` to `.env`, keeping your local environment configuration consistent.\n\n---\n\n## 🔍 Example\n\nSuppose your `.env.example` file includes new variables such as `API_KEY` and `APP_ENV`. When you run:\n\n```bash\nphp artisan sync:env\n```\n\nThe 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.\n\n---\n\n## 📜 License\n\nThis package is open-source software licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuzammal01%2Fsyncenvvariables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuzammal01%2Fsyncenvvariables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuzammal01%2Fsyncenvvariables/lists"}