gadixsystem/envwriter 问题修复 & 功能扩展

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

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

gadixsystem/envwriter

Composer 安装命令:

composer require gadixsystem/envwriter

包简介

Simple package to write environment

README 文档

README

Laravel package to modify .env file.

Installation:

From your command line run:

composer require gadixsystem/envwriter

Register the provider

In config/app.php add the follow line:

 'providers' => [
       
        //EnvWriter
        gadixsystem\envwriter\EnvWriterServiceProvider::class,
  ]

Basic usage

In your controller add the usage statement:

use gadixsystem\envwriter\EnvWriter as Envwriter;

Methods

  • EnvWriter::change($key,$value,$trim)

Change the value of a key, if the key does not exist EnvWriter will create a new key with this value, returns true or false. $trim by default is TRUE, if you need to set string with spaces use $trim = FALSE

  • EnvWriter::exists($key)

Check if key exists or not, returns true or false.

  • EnvWriter::delete($key)

Delete specific key, if the key does not exist it returns false

Testing

Run:

vendor/bin/phpunit vendor/gadixsystem/envwriter/src/tests

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固