承接 geoffry304/yii2-enveditor 相关项目开发

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

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

geoffry304/yii2-enveditor

Composer 安装命令:

composer require geoffry304/yii2-enveditor

包简介

Yii2 Env editor

README 文档

README

Latest Version Total Downloads

Module and component to edit env file

Installation

The preferred way to install yii2-enveditor is through Composer. Either add the following to the require section of your composer.json file:

"geoffry304/yii2-enveditor": "*"

Or run:

$ php composer.phar require geoffry304/yii2-enveditor "*"

You can manually install yii2-enveditor by downloading the source in ZIP-format.

Update the config file

// app/config/web.php
return [
'components' => [
        'env' => [
            'class' => '\geoffry304\enveditor\components\EnvComponent',
            'autoBackup' => true,
            'backupPath' => "backups",
        ],
    ],
    'modules' => [
        'enveditor' => [
            'class' => '\geoffry304\enveditor\Module',
            'allowedIds' => "1,2,3"
        ],
    ],
];

Options

Module Has the following options to modify it's behaviour:

  • allowedIds: The userids who have access to the module, multiple ids with comma separated.

Component Has the following options to modify it's behaviour:

  • filePath: The path to the .env file. Default to the basepath/.env
  • autoBackup: Autobackup to true or false. Default to true
  • backupPath: The folder where the backups need to be stored. Default to backups

Special thanks to JackieDo

Used his Laravel code to make it work in Yii2.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-02-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固