mtrojan-ub/vufind-module-composer-test
Composer 安装命令:
composer require mtrojan-ub/vufind-module-composer-test
包简介
An extension module for vufind-org/vufind that can be added via composer, testing several mechanisms for overriding folder structures, versioning etc.
README 文档
README
vufind-module-composer-test
This is a simple extension module for VuFind to be included via composer.
Effects
- A JavaScript popup will be shown everytime you call a page, similar to the default local_example_mixin
- There is a new page being added
Content/mypagewhich uses a View Helper from the module to generate a simple example text
To include
- Add a "require"-entry to your composer.local.json
"require": {
"mtrojan-ub/vufind-module-composer-test": "dev-main"
}
- Execute
composer update - Make sure the custom module is loaded in your ENV variables
VUFIND_LOCAL_MODULES=MyModule(Webserver config, CLI, ... depending on what you want to do) - Make sure that MyMixin is loaded in your theme.config.php
'mixins' => ['MyMixin'], see https://vufind.org/wiki/development:architecture:user_interface- Add a Symlink in your
themesfolder to../vendor/mtrojan-ub/vufind-module-composer-test/themes/MyMixin
- Add a Symlink in your
Special thoughts for further evaluation
- Typically other modules only add "module"-related code, but we also want to override other parts of the code:
- Templates: Can we solve the manual symlink in another way? (e.g. a directive in composer.local.json and/or a small sh/bat script)
- Config: Should we provide separate config files instead of extending existing ones? (might depend on what our module is about)
- What versioning should be used? e.g. if you want the module to be compatible with different VuFind versions, should we provide several tags for each version? Do we need to extend the versioning schema for this? (e.g. if we write a version for 11.0 and the VuFind Version is 11.0.1, and we fix a bug, do we need to use sub-versions like 11.0.1.0, 11.0.1.1 and so on, and provide separate versions for 10.2 like 10.2.0.0, 10.2.0.1, ...)
- QA-Tasks are experimentally included as well (copied from vufind-org/vufindhttp), with the following limitations/changes
- So far only for "module" and not for "themes"
- comment-related rules will be skipped in phpcs.xml for now (lots of duplicate stuff with mandatory comments when you have type hinting, redundant information in the same file, etc.)
- ci.yaml only runs with a single PHP version and without PHPUnit (which is not yet used in this test module anyway)
mtrojan-ub/vufind-module-composer-test 适用场景与选型建议
mtrojan-ub/vufind-module-composer-test 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 01 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 mtrojan-ub/vufind-module-composer-test 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mtrojan-ub/vufind-module-composer-test 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 25
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2026-01-09