zepgram/magento-dotenv
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:
- If .env exists, it is loaded first. In case there's no .env file but a .env.dist, this one will be loaded instead.
- 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.
- If there's a .env.local representing general local environment variables it's loaded now.
- 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
zepgram/magento-dotenv 适用场景与选型建议
zepgram/magento-dotenv 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 75.73k 次下载、GitHub Stars 达 13, 最近一次更新时间为 2020 年 02 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「environment」 「env」 「dotenv」 「magento2」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 zepgram/magento-dotenv 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 zepgram/magento-dotenv 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 zepgram/magento-dotenv 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Environment processor and contexts autoloader
The tenancy/tenancy identification driver using environment variables
Multiple cascading environmental configuration files support for Laravel 5
An environment variable convenience library extension for vlucas/phpdotenv
Laravel dotenv manager
Utils to load, parse and work with configuration on Mezzio projects
统计信息
- 总下载量: 75.73k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-02-27