simbiat/prettyurl 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

simbiat/prettyurl

最新稳定版本:1.2.0+20210129

Composer 安装命令:

composer require simbiat/prettyurl

包简介

Class to transliterate lots of characters

README 文档

README

\Simbiat\HTTP\Convert::pretty(string $string, string $whitespace = '-', bool $url_safe = true);

Function transliterates lots of characters and makes a safe and pretty URL. This is intended more as a SEO thing, rather than sanitization.

Includes the majority (if not all) of diacritics (accented characters), cyrillic, hiragana, katakana, arabic, chinese characters. They are replaced by Latin characters or combinations that are representing how they are pronounced, officially romanized or the closest neighbors in terms of how a character is drawn.

It also allows replacing whitespace characters with a character of your choosing (hyphen as default).

If $url_safe is set to true, some characters will be removed as well, because they can "break" the URL. Some of them are valid for a URI, but they are not good for SEO links.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: AGPL-3.0-or-later
  • 更新时间: 2025-07-20