markshust/magento2-module-specialrouter
Composer 安装命令:
composer require markshust/magento2-module-specialrouter
包简介
The SpecialRouter module adds the ability to use special characters in URLs.
README 文档
README
Adds the ability to use special characters in URLs.
Table of contents
Summary
Magento does not provide the ability to set special characters on controller or action names. This module fixes that by providing the ability to use -, ., and ~ within a URL.
Installation
composer require markshust/magento2-module-specialrouter
bin/magento module:enable MarkShust_SpecialRouter
bin/magento setup:upgrade
Usage
This module is really simple to use. All you need to do is use the appropriate "name" that matches the symbol you'd like to use in the URL.
- Symbol:
-, Name:Dash - Symbol:
., Name:Period - Symbol:
~, Name:Tilda
For example, to respond to a request with a frontName of foo at the following location:
/foo/alpha-beta/charlie-delta
Use a PHP class named:
Controller/AlphaDashBeta/CharlieDashDelta.php
The - in the URL will be translated to dash in the actionPath and actionName, so if we create files using Dash in the controller and action name, they will respond to these requests.
Credits
M.academy
This course is sponsored by M.academy, the simplest way to learn Magento.
Mark Shust
My name is Mark Shust and I'm the creator of this repo. I'm a 6X Adobe Commerce Certified Developer and have been involved with Magento since the early days (v0.8!). I create technical education courses full-time for my company, M.academy.
- 🖥️ See my Magento lessons & courses
- 📖 Read my technical articles
- 🎥 Watch my YouTube videos
- 🔗 Connect on LinkedIn
- 🐦 Follow me on X
- 💌 Contact me
License
markshust/magento2-module-specialrouter 适用场景与选型建议
markshust/magento2-module-specialrouter 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.43k 次下载、GitHub Stars 达 14, 最近一次更新时间为 2022 年 12 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 markshust/magento2-module-specialrouter 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 markshust/magento2-module-specialrouter 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.43k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-16
