therealworld/clirun-plugin
Composer 安装命令:
composer require therealworld/clirun-plugin
包简介
a script for oxid6 update preparations.
关键字:
README 文档
README

description
New oe-console commands
- trw:allmodules:active [--env=XXXX] [--shop-id=1]
- trw:allmodules:deactive [--env=XXXX] [--shop-id=1]
- trw:clear:cache
- trw:clear:demoimages
- trw:clear:modules
- trw:clear:tplblock
- trw:config:export [--env=XXXX] [--shop-id=1]
- trw:config:import [--env=XXXX] [--shop-id=1]
- trw:generate:yaml:config [--env=XXXX] [--shop-id=1]
- trw.ide.helper [--shop-id=1]
- trw.module.refresh [--module-id=abcde] [--shop-id=1]
- trw:update:after [--env=XXXX] [--shop-id=1]
- trw:update:before [--env=XXXX] [--shop-id=1]
- trw:update:views
All-Module actions (deactivate, activate)
The "All-Modules" Activate Commands set the Shop in Maintenance Mode
All-Module active (trw:allmodules:active)
- activate all Modules in a certain order
- set Shop Maintenance Mode "off"
- option --env=XXXX:
- get the Plugin-Config from file trwclirun.XXXX.1.yaml
- option --shop-id=YYYY:
- get the Plugin-Config from file trwclirun.XXXX.YYYY.yaml or trwclirun.YYYY.yaml
- activate the Modules in Shop with this ID
All-Module deactive (trw:allmodules:deactive)
- set Shop Maintenance Mode "on"
- deactivate all Modules
- option --env=XXXX:
- get the Plugin-Config from file trwclirun.XXXX.1.yaml
- option --shop-id=YYYY:
- get the Plugin-Config from file trwclirun.XXXX.YYYY.yaml or trwclirun.YYYY.yaml
- deactivate the Modules in Shop with this ID
- if not set, the command check if Plugin-Configs exists for all Shop-Ids
Clear-Commands
clean Cache (trw:clear:cache)
- Clean OXID cache
clear demoimages (trw:clear:demoimages)
- Delete the unecessary demoimages installed during shopinstallation
clear Modules (trw:clear:modules)
- clear broken Modules Entries & delete unecessary Module-Options
clear Tpl Blocks (trw:clear:tplblock)
- Deletes duplicate Tpl block entries
config im- and export commands
config export (trw:config:export)
- export the values of Modules, Themes, Shop and ShopTable configs into a transfer YAML — purpose: hand the values over to another shop (e.g. an OXID-6 → OXID-7 migration) without dragging structural module wiring along
- what is included per module:
id+moduleSettings - what is stripped before writing the transfer YAML, so the target system's
own metadata.php / shops/{id}.yaml stay authoritative:
classExtensions,controllers,eventstemplates,templateBlocks,smartyPluginDirectories- the merged top-level
moduleChainsblock
- themes, shopconfig and shoptable are exported as values-only by design
- option --env=XXXX:
- get the Plugin-Config from file trwclirun.XXXX.1.yaml
- option --shop-id=YYYY:
- get the Plugin-Config from file trwclirun.XXXX.YYYY.yaml or trwclirun.YYYY.yaml
- export the Config from Shop with this ID
- if not set, the command check if Plugin-Configs exists for all Shop-Ids
config import (trw:config:import)
- import the Modules-, Themes-, Shop- and ShopTableConfigs from the transfer YAML
- whitelist protection: every incoming variable is checked against what the
target shop actually declares. Unknown modules / themes / variables are
skipped with a
<comment>warning instead of being silently written. Source of truth per section:- modules:
var/configuration/shops/{id}.yaml(modules section) — the modules must therefore be installed/activated in the target shop before the import runs - themes:
oxconfigrows whereOXMODULE = 'theme:{themeId}' - shopconfig:
oxconfigrows whereOXMODULE = '' - shoptable: declared columns of the
oxshopstable
- modules:
- option --env=XXXX:
- get the Plugin-Config from file trwclirun.XXXX.1.yaml
- option --shop-id=YYYY:
- get the Plugin-Config from file trwclirun.XXXX.YYYY.yaml or trwclirun.YYYY.yaml
- import the Config from Shop with this ID
- if not set, the command check if Plugin-Configs exists for all Shop-Ids
configuration (trw:generate:yaml:config)
- create a configfile via oe-console-command: oe-console trw:generate:yaml:config
Example: 1.yaml.dist
YAML example:
moduleTakeCare: - demo1 - demo2
moduleTakeCareDevelop:
- demo3
- demo4
themeTakeCare:
- flow
- wave
- azure
- mobile
exportModuleConfigs: dummymodule:
- aDummyOption
dontRunIfFileExits:
- dummyfile1.txt
runIfFileExits:
- dummyfile2.txt
dontRunIfOptionValue: bDemoOption: true
runIfOptionValue: bDemoOption: true
runIfEnvironmentVariable: DEV_ENVIRONMENT: 1
prepareShopForUpdate: false
configExportImportPath: transfer
configExportNotAllowedVars:
- bOptionNotAllowed1
- bOptionNotAllowed2
configImportNotAllowedVars:
- bOptionNotAllowed1
- bOptionNotAllowed2
...
- option --env=XXXX: write the Plugin-Config in file trwclirun.XXXX.1.yaml
option --shop-id=YYYY:
- write the Plugin-Config in file trwclirun.XXXX.YYYY.yaml or trwclirun.YYYY.yaml
- if not set, the command write the Plugin-Configs for all Shop-Ids
moduleTakeCare: (necessary for command trw:update:before, trw:allmodules:active and trw:allmodules:deactive)
- List of ModuleIds for deletetion and activation, before and after update commands
- The sorting ensures the order of activation
moduleTakeCareDevelop: (necessary for command trw:update:before and trw:allmodules:deactive)
- List of ModuleIds for deletetion and deactivation, before update commands
themeTakeCare: (necessary for command trw:update:before)
- List of Themes, that will be deleted before update commands
- the OXID-Shop-installer will create the themes again
prepareShopForUpdate: (necessary for command trw:update:before)
- prepare the shop, so that the install-routine from OXID starts during "composer install"
- please be careful, start it only if the standard OXID routines of "composer install" start after executing the command
- the OXID-Shop-installer will create the themes again
exportModuleConfigs: (necessary for command trw:update:before)
- This Module-options will be saved, before update
- Some Module-Options would be inserted or manipulated via DB. This will be lost during Shop Updates. This Options would be inserted again after Shop-Update
dontRunIfFileExits: (necessary for command trw:update:before and trw:update:after)
- dont run this commands if file exists
- its a possibility to stop automatic updates
runIfFileExits: (necessary for command trw:update:before and trw:update:after)
- run this commands only if file exists
- its a possibility to stop automatic updates
dontRunIfOptionValue: (necessary for command trw:update:before and trw:update:after)
- dont run this commands if an shop-config-value exists and active
- its a possibility to stop automatic updates
runIfOptionValue: (necessary for command trw:update:before and trw:update:after)
- run this commands only if if an shop-config-value exists and active
- its a possibility to stop automatic updates
runIfEnvironmentVariable: (necessary for command trw:update:before and trw:update:after)
- run this commands only if if an ENVIRONMENT-VARIABLE exists
- its a possibility to stop automatic updates
configExportImportPath: (necessary for command trw:config:export and trw:config:import)
- The path in which the config export is saved
- relative to root/var/configuration
configExportNotAllowedVars: (necessary for command trw:config:export and trw:config:import)
- Dont export this config-vars
configImportNotAllowedVars: (necessary for command trw:config:export and trw:config:import)
- Dont import this config-vars
Create IDE-Helper file (trw:ide:helper)
- option --shop-id=YYYY:
- the id of the shop
- if not set, the create the helper-files for all Shop-Ids
- creates a helper file for the modules currently installed in the shop so that IDEs such as phpStorm can find the class chains and thus code completion is possible
- it does not matter whether the module is active or not. what is important is whether it is installed for the shop
- the file is stored in the root directory and has the name ".ide-helper_modules_1.php", for example. The 1 stands for the shop ID
- the file(s) are parallel to the ".ide-helper.php" which is created via "vendor/bin/oe-eshop-ide_helper"
- if no shop ID is provided optionally, the file for the standard shop is created with the ID 1
Module Refresh (trw:module:refresh)
- option --module-id=XXXX:
- the id of the module
- option --shop-id=YYYY:
- the id of the shop
- if not set, the command refresh the Module for all Shop-Ids
- helper-command for developers
- deactivate, install and activate a module in one step
shopupdate-commands
The shopupdate-commands are intended to speed up the shop composer update process. The following commands can be executed before and after the shop update:
after Update (trw:update:after)
- option --env=XXXX: get the Plugin-Config from file trwclirun.XXXX.1.yaml
- option --shop-id=YYYY:
- get the Plugin-Config from file trwclirun.XXXX.YYYY.yaml or trwclirun.YYYY.yaml
- "after updates"-processes in Shop with this ID
- if not set, the command check if Plugin-Configs exists for all Shop-Ids
- activate all Modules in a certain order (via trw:allmodules:active command)
- delete unecessary Demo Images (via trw:delete:demoimages command)
- clean cache (via trw:clear:cache command)
- correct tplblocks (via trw:clear:tplblock command)
before the Update (trw:update:before)
- option --env=XXXX: get the Plugin-Config from file trwclirun.XXXX.1.yaml
- option --shop-id=YYYY:
- get the Plugin-Config from file trwclirun.XXXX.YYYY.yaml or trwclirun.YYYY.yaml
- "before updates"-processes in Shop with this ID
- if not set, the command check if Plugin-Configs exists for all Shop-Ids
- check whether certain conditions are met
- deactivate all Modules (via trw:allmodules:deactive command)
- clean broken Modules Options
- delete all old themes
Views Update (trw:update:views)
- update the Shop views
therealworld/clirun-plugin 适用场景与选型建议
therealworld/clirun-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.35k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 01 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「plugin」 「oxidEshop」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 therealworld/clirun-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 therealworld/clirun-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 therealworld/clirun-plugin 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This file is mean to be used to install OXID eShop compilation.
This is OXID eShop compilation metapackage.
CakePHP 4.x AdminLTE Theme.
The toolkit-core-classes with useful functions for other modules
Plugin for YOURLS. Default tools to use in some laemmi plugins
a script for oxid6 install housekeeping.
统计信息
- 总下载量: 1.35k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2020-01-13