slug-generator:PHP的Slug生成器库,基于Unicode的CLDR数据

时间:2021-02-03 23:39:50
【文件属性】:
文件名称:slug-generator:PHP的Slug生成器库,基于Unicode的CLDR数据
文件大小:25KB
文件格式:ZIP
更新时间:2021-02-03 23:39:50
unicode library ascii transliteration cldr 子弹发生器库 该库提供了为URL,文件名或字符集受限的任何其他目标生成段的方法。 它基于PHP的Transliterator类,该类使用的数据在不同脚本(例如,西里尔字母到拉丁字母)或类型(例如,大写到小写或从特殊字符到ASCII)之间转换字符。 用法 <?php use Ausi \ SlugGenerator \ SlugGenerator ; $ generator = new SlugGenerator ; $ generator -> generate ( 'Hello Wörld!' ); // Output: hello-world $ generator -> genera
【文件预览】:
slug-generator-master
----.gitignore(70B)
----codecov.yml(105B)
----src()
--------SlugGenerator.php(9KB)
--------Resources()
--------SlugGeneratorInterface.php(624B)
--------SlugOptions.php(7KB)
----LICENSE(1KB)
----composer.json(2KB)
----CHANGELOG.md(2KB)
----.github()
--------FUNDING.yml(62B)
--------workflows()
----ecs.php(1KB)
----README.md(6KB)
----tests()
--------SlugGeneratorTest.php(8KB)
--------bootstrap.php(756B)
--------SlugGeneratorInterfaceTest.php(769B)
--------SlugOptionsTest.php(10KB)
----phpunit.xml.dist(557B)
----psalm.xml(905B)
----.editorconfig(320B)

网友评论