mihdan/cyr2lat
Composer 安装命令:
composer require mihdan/cyr2lat
包简介
Cyr-To-Lat
README 文档
README
Converts Cyrillic characters in post, page, and term slugs to Latin characters. Useful for creating human-readable URLs.
Features
- The only plugin with a fully editable transliteration table. Allows adding/ removing and editing pairs like 'Я' ⇒ 'Ya', or even 'Пиво' ⇒ 'Beer'
- Converts any number of existing post, page, and term slugs in background processes
- Saves existing post and page permalinks integrity
- Performs transliteration of attachment file names
- Includes Russian, Belorussian, Ukrainian, Bulgarian, Macedonian, Serbian, Greek, Armenian, Georgian, Kazakh, Hebrew, and Chinese characters
- Has many advantages over similar plugins
- Officially compatible with WPML
Installation
cd /wp-content/plugins
git clone https://github.com/mihdan/cyr2lat.git
cd cyr2lat
composer install
yarn
yarn dev
Development
git clone https://github.com/mihdan/cyr2lat.git
cd cyr2lat
make install
Run code sniffer to respect WordPress coding standards
composer phpcs
Run unit tests
composer unit
WP-CLI support
wp cyr2lat regenerate [--post_type=<post_type>] [--post_status=<post_status>]
Where
-post_type is list of post types,
-post_status is list of post statuses.
Packagist
License
The WordPress Plugin Cyr-To-Lat is licensed under the GPL v2 or later.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
A copy of the license is included in the root of the plugin’s directory. The file is named LICENSE.
Credits
The current version of the Cyr-To-Lat was developed by Sergey Biryukov, Mikhail Kobzarev, and Igor Gergel.
Contributors: SergeyBiryukov, mihdan, karevn, webvitaly, kagg-design.
Sponsor: Blackfire
mihdan/cyr2lat 适用场景与选型建议
mihdan/cyr2lat 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 158 次下载、GitHub Stars 达 36, 最近一次更新时间为 2019 年 02 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「translations」 「l10n」 「russian」 「transliteration」 「cyrillic」 「latin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mihdan/cyr2lat 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mihdan/cyr2lat 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mihdan/cyr2lat 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Easy to use internationalization functions for Laravel
Deepl Automated translations for Laravel lang files
Symfony2 Bundle Moment.js - Parse, validate, manipulate, and display dates in JavaScript
Rutils Symfony 2 bundle
Analyze user input string, and split it into Russian first name, second name and last name
PHP версия типографа Муравьева
统计信息
- 总下载量: 158
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 38
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2019-02-06


