定制 jedymatt/laravel-sail-env 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱: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

统计信息

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

GitHub 信息

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

其他信息

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