jedymatt/laravel-sail-env 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

jedymatt/laravel-sail-env

最新稳定版本:v1.1.6

Composer 安装命令:

composer require jedymatt/laravel-sail-env

包简介

Configures .env file to match the sail environment variable's requirements.

README 文档

README

Packagist Downloads Packagist Version Packagist PHP Version Support

Configures .env file to match the sail environment variable's requirements.

Installation

Install as development dependency:

composer require --dev jedymatt/laravel-sail-env

Usage

To configure .env file:

php artisan sail:env

Why is this created?

To configure the .env file without having to run php artisan sail:install again just to replace the variables in .env file. It would be tedious specially when you have custom configuration in your docker-compose.yml because sail:install command overwrites your docker-compose.yml file.

How?

[v1.1.5 or newer] It reads the services of sail inside docker-compose.yml file using yaml parser. Then, It uses the sail's InteractsWithDockerComposeServices trait to replace env variables so that it keeps in sync to laravel/sail package.

[v1.1.4 or older] It reads the services of sail inside docker-compose.yml file using regex. Then, It uses the sail's InstallCommand's replaceEnvVariables method so that it keeps in sync to laravel/sail package.

Notes

v1.1.5 or newer is only compatible to laravel/sail v1.20.0 and up.

Found Bugs?

Report to GitHub Issues

Have suggestions?

Feel free to create discussion in GitHub Discussions

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固