iqual/icms_core_logic
Composer 安装命令:
composer require iqual/icms_core_logic
包简介
ICMS Core Logic - Provides deployment hooks and update functions for ICMS core functionality and propagates changes to child projects.
README 文档
README
This module contains update hooks and cross-bundle logic for ICMS core functionality.
Purpose
- Handle structural changes via
hook_update_N() - Provide shared functionality needed across multiple bundles
- Provide Drush commands for code generation and project setup
Drush Commands
Generate Project Translations Module
Generate a dedicated module for project-specific translations:
ddev drush icms:generate-translations-module
# or using alias
ddev drush icms-gen-trans
This creates modules/custom/icms_project_translations with:
translations/directory for custom translation files (.pofiles)texts/directory for text snippets and copy- Proper module structure with
.info.ymlfile
After generation, enable the module:
ddev drush en icms_project_translations
Hook Types
Update Hooks
Run before config import. Use for schema changes, complex migrations.
function icms_core_logic_update_9001() { \Drupal::service('module_installer')->install(['new_module']); return new TranslatableMarkup('Enabled new_module.'); }
Start numbering from 9001.
Deployment Workflow
Client projects update via:
composer update iqual/icms_core drush updb # Runs update hooks drush cex # Export config drush cr # Clear cache
Bundle Logic Modules
Each bundle has a paired logic module (e.g., icms_bundle_news_logic) following the same pattern.
Client Projects
Client projects should create feature-specific modules (e.g., clientname_sso, clientname_newsletter) rather than a single *_logic module. Use update numbers below 9000 for client-specific hooks.
iqual/icms_core_logic 适用场景与选型建议
iqual/icms_core_logic 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 494 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 11 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 iqual/icms_core_logic 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 iqual/icms_core_logic 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 494
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 24
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2025-11-18