rogerthomas84/slugify
Composer 安装命令:
composer require rogerthomas84/slugify
包简介
Generate slugs
README 文档
README
Generate a URL safe slugs from strings...
Usage:
composer require rogerthomas84/slugify
Convert a string to a slug:
<?php $string = 'The quick brown fox jumped over the lazy dog.'; $slug = \Slugify\Slugify::get($string); // $slug = string(44) "the-quick-brown-fox-jumped-over-the-lazy-dog" // Slugify also removes any special (non alphanumeric) characters... $string2 = 'The "quick" brown fox jumped (OVER) the lazy dog!'; $slug2 = \Slugify\Slugify::get($string2); // $slug2 = string(44) "the-quick-brown-fox-jumped-over-the-lazy-dog"
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: mit
- 更新时间: 2022-01-17