承接 muzammal/syncenvvariables 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

muzammal/syncenvvariables

最新稳定版本:1.0.0

Composer 安装命令:

composer require muzammal/syncenvvariables

包简介

A Laravel package to synchronize environment variables from .env.example to .env

README 文档

README

Latest Version on Packagist Total Downloads

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

  1. Install the package via Composer:

    composer require muzammal/syncenvvariables

📘 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:

php artisan sync:env

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:

php artisan sync:env

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.

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-11-08