定制 zepgram/magento-dotenv 二次开发

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

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

zepgram/magento-dotenv

最新稳定版本:2.0.3

Composer 安装命令:

composer require zepgram/magento-dotenv

包简介

Simple autoloader to integrate the Symfony Dotenv component into Magento2

README 文档

README

Simple autoloader to integrate Symfony Dotenv component to Magento2. The implementation can be found under path app/dotenv.php and can be configured safely for your needs.

Compatibility

Magento Dotenv v1.* v2.*
Symfony Dotenv ^5.0 ^5.4 / ^6.0
PHP version ^7.0 ^8.0

Installation

composer require zepgram/magento-dotenv 

How to

You can use it similar way as a Symfony project:

  1. If .env exists, it is loaded first. In case there's no .env file but a .env.dist, this one will be loaded instead.
  2. If one of the previously mentioned files contains the APP_ENV variable, the variable is populated and used to load environment-specific files hereafter. If APP_ENV is not defined in either of the previously mentioned files, dev is assumed for APP_ENV and populated by default.
  3. If there's a .env.local representing general local environment variables it's loaded now.
  4. If there's a .env.$env.local file, this one is loaded. Otherwise, it falls back to .env.$env.

You can freely edit app/dotenv.php: this file will be not updated.

For more information you can follow the documentation: https://symfony.com/doc/current/components/dotenv.html

统计信息

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

GitHub 信息

  • Stars: 13
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固