13dagger/slugify
Composer 安装命令:
composer require 13dagger/slugify
包简介
String to slug converter with both cyrillic and european languages support. Requires iconv, uses intl if possible.
README 文档
README
String to slug converter with both cyrillic and european languages support. Requires iconv, uses intl if possible.
Installation
composer require 13dagger/slugify
Usage
require_once __DIR__ . '/vendor/autoload.php'; use slugify\Slugify; $try = 'A æ Übérmensch på høyeste nivå! И я люблю PHP! fi'; $result = Slugify::process($try); echo "$try\n$result\n";
output:
A æ Übérmensch på høyeste nivå! И я люблю PHP! fi
a-ae-ubermensch-pa-hoyeste-niva-i-a-lublu-php-fi
统计信息
- 总下载量: 25
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2018-11-13