mage-os/module-hreflang
Composer 安装命令:
composer require mage-os/module-hreflang
包简介
Locale identification management for URLs
README 文档
README
🚀 Features
This module adds locale identification management for urls
- cms pages
- product pages
- category pages
🔧 Installation
You can install this module adding it on app/code folder or with composer.
composer require mage-os/module-hreflang
Then you'll need to enable the module and update your database and files:
php bin/magento module:enable MageOS_Hreflang
php bin/magento setup:upgrade
php bin/magento setup:di:compile
CONFIGURATION
You must enable the module from "Stores > Configurations > Web > Search Engine Optimization" section adding your hreflang configuration for store view scope. CMS pages are related to each other via the meta_identifier attribute (if filled in). See the "Search Engine Optimization > Hreflang association identifier" section for each page.
EXTENSION
You can add multiple controllers/url retrievers configurations mapping other scenarios trough Dependency injection. Create a new module with MageOS_Hreflang inside module.xml sequence, then add new retrievers through di.xml:
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="MageOS\Hreflang\Model\Retriever\HreflangService">
<arguments>
<argument name="retrievers" xsi:type="array">
<item name="other_controller_path" xsi:type="object">Vendor\Module\Model\Retriever\OtherScenarioHreflangRetriever</item>
</argument>
</arguments>
</type>
</config>
🤝 Changelog
Please see CHANGELOG for more information on what has changed recently.
📄 License
The MIT License (MIT). Please see License File for more information.
mage-os/module-hreflang 适用场景与选型建议
mage-os/module-hreflang 是一款 基于 XSLT 开发的 Composer 扩展包,目前已累计 44 次下载、GitHub Stars 达 2, 最近一次更新时间为 2026 年 04 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 mage-os/module-hreflang 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mage-os/module-hreflang 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 44
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 36
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-05