snowsoft/flex-env 问题修复 & 功能扩展

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

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

snowsoft/flex-env

最新稳定版本:0.05

Composer 安装命令:

composer require snowsoft/flex-env

包简介

Edit your .env file in Laravel directly from the command line.

README 文档

README

flex-env

Laravel FlexEnv

Latest Version on Packagist Total Downloads Software License Build Status Code Climate Code Quality StyleCI

This package adds a handful of useful commands to edit your .env file in Laravel directly from the command line with a simple, human readable API. Never touch the mouse again!

Installation

Via composer:

$ composer require snowsoft/flex-env --dev

Alternatively, add the package to your dev dependencies in composer.json and run composer update afterwards:

{
    "require-dev": {
        "snowsoft/flex-env": "^2.0"
    }
}

Note: If you're using Laravel 5.5, you're done! The service provider is automatically registered in the container, thanks to auto-discovery.

Next, add the FlexEnvServiceProvider to your providers array in config/app.php:

// config/app.php
'providers' => [
    ...
    Sven\FlexEnv\FlexEnvServiceProvider::class,
]

Usage

The commands in this package should now be registered. Simply run php artisan, and you will see them in the list.

# Create or edit an entry in your .env file:
$ php artisan env:set {key} {value} [--line-break|-L]
# Add the --line-break (or -L) option to insert a line break before the entry.
# Delete an entry from your .env file:
$ php artisan env:delete {key}
# Show the value of the given key from your .env file:
$ php artisan env:get {key}
# Show the entire .env file:
$ php artisan env:list

All changes you made should now be reflected in your .env file.

Inspiration

Inspiration for this package came from LeShadow's ArtisanExtended.

Contributing

All contributions (pull requests, issues and feature requests) are welcome. Make sure to read through the CONTRIBUTING.md first, though. See the contributors page for all contributors.

License

sven/flex-env is licensed under the MIT License (MIT). See the license file for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固