定制 codezero/dotenv-updater 二次开发

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

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

codezero/dotenv-updater

最新稳定版本:2.0.0

Composer 安装命令:

composer require codezero/dotenv-updater

包简介

Update key/value pairs in a .env file.

README 文档

README

GitHub release License Build Status Code Quality Total Downloads

ko-fi

Update key/value pairs in a .env file.

✅ Requirements

  • PHP >= 7.3

???? Install

composer require codezero/dotenv-updater

???? Usage

Create an instance of the DotEnvUpdater and pass it the path to the .env file:

$updater = new \CodeZero\DotEnvUpdater\DotEnvUpdater('/path/to/.env');

Add any new, or overwrite any existing key/value pairs:

$updater->set('MY_ENV_KEY', 'Some Value'); // Strings
$updater->set('MY_ENV_KEY', 25); // Integers
$updater->set('MY_ENV_KEY', true); // Booleans
$updater->set('MY_ENV_KEY', null); // NULL values
$updater->set('MY_ENV_KEY', ''); // Empty values

Retrieve the value of a key:

$value = $updater->get('MY_ENV_KEY');

???? Testing

composer test

☕️ Credits

???? Security

If you discover any security related issues, please e-mail me instead of using the issue tracker.

???? Changelog

A complete list of all notable changes to this package can be found on the releases page.

???? License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固