定制 alpaca-sh/magento2-environmentconfig 二次开发

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

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

alpaca-sh/magento2-environmentconfig

Composer 安装命令:

composer require alpaca-sh/magento2-environmentconfig

包简介

Apply environment specific configuration for Magento 2 projects

README 文档

README

This Magento 2 module aims to be a simple way of applying specific Magento configuration for the current environment, based on YAML or JSON files.

Build upon the semaio/magento2-configimportexport module.

Installation

Install via composer

composer require alpaca-sh/magento2-environmentconfig

Enable and install the module

php bin/magento module:enable Alpaca_EnvironmentConfig
php bin/magento setup:upgrade

Usage

Configuration folder

Create a new folder in the root of your project (default: .environment), and add this folder to your .gitignore. Next, create one or more files (yaml or json) with your desired configuration.

See File Formats for an extensive overview of the supported file formats, supported by the underlying module semaio/magento2-configimportexport.

Example

# .environment/web.yaml

web/unsecure/base_url:
  default:
    0: 'http://magento-app.com/'
web/secure/base_url:
  default:
    0: 'https://magento-app.com/'

Encrypted values

If you need to save encrypted values but prefer to store the decryted value in your yaml or json file you can use the !encryted prefix.

service/api/key:
  default:
    0: '!encrypted supersecretapikey'

Apply changes (manually)

Apply changes using the defaults:

  • Folder: .environment
  • Format: yaml
bin/magento environment:config:process

Apply changes with non-default folder name and format

bin/magento environment:config:process --folder <folder-path> --format json

After the changes have been applied, the cache will be cleared automaticly. To skip that you can use the --no-cache option.

Apply changes (automatically)

The configuration can also be applied automatically when running bin/magento setup:upgrade.

Add the following configuration to your app/etc/env.php.

'environment_config' => [
    'auto_update' => [
        'enabled' => true
    ]
]

You can override the defaults:

'environment_config' => [
    'auto_update' => [
        'enabled' => true,
        'directory' => '.environment',
        'format' => 'yaml'
    ]
]

Licence

Open Software License (OSL 3.0)

alpaca-sh/magento2-environmentconfig 适用场景与选型建议

alpaca-sh/magento2-environmentconfig 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9.49k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 06 月 25 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 alpaca-sh/magento2-environmentconfig 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 alpaca-sh/magento2-environmentconfig 我们能提供哪些服务?
定制开发 / 二次开发

基于 alpaca-sh/magento2-environmentconfig 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2021-06-25