承接 neelkanthk/laravel-easyenv 相关项目开发

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

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

neelkanthk/laravel-easyenv

Composer 安装命令:

composer require neelkanthk/laravel-easyenv

包简介

Easily manage and switch between multiple environment files using cli.

README 文档

README

Laravel EasyEnv Logo

EasyEnv

A Laravel package to easily manage and switch between multiple environment files using artisan cli.

Installation

composer require neelkanthk/laravel-easyenv

Publish the config file.

php artisan vendor:publish --provider="Neelkanth\Laravel\EasyEnv\Providers\EasyEnvServiceProvider" --tag="config"

Usage

Add the following lines just before the php return $app; in the bootstrap/app.php

use Neelkanth\Laravel\EasyEnv\EasyEnv;
$app->useEnvironmentPath(EasyEnv::path())->loadEnvironmentFrom(EasyEnv::file());

Managing the Envrionments through CLI

The package provides following artisan commands to add/remove and enable/disable environments.

The commands have following signature.

php artisan easyenv:[action] {env} {path} {file}
[action] : Following action are available list|add|remove|enable|disable
{env}: The name of your choice for the environment.
{path}: The absolute path of the location of the environment file
{file}: The name of the environment file residing on the filesystem.

1. Add a new environment.

php artisan easyenv:add staging /var/www/env/ .staging

2. Enable an environment.

Only 1 environment can be enabled at a time.

php artisan easyenv:enable staging

3. Listing all available environments.

php artisan easyenv:list
Environment Status Path File
staging Enabled /var/www/env/ .staging

4. Disable currently enabled environment.

php artisan easyenv:disable

5. Remove an environment

php artisan easyenv:remove staging

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Security

If you discover any security-related issues, please email me.neelkanth@gmail.com instead of using the issue tracker.

Credits

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-10-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固