eschmar/slugify-bundle
Composer 安装命令:
composer require eschmar/slugify-bundle
包简介
Provides static method to convert strings to slugs and twig filter.
README 文档
README
Provides static method to convert strings to slugs as well as a twig filter for symfony. If you only need the static class, you'll find it here.
Install
Composer (Packagist):
composer require eschmar/slugify-bundle ~v2.0 # Symfony Flex composer require eschmar/slugify-bundle ~v1.0 # Symfony 2
app/Appkernel.php:
new Eschmar\SlugifyBundle\EschmarSlugifyBundle(),
Usage
use Eschmar\SlugifyBundle\Util\Slug; $test = Slug::ify("String to be slugified"); // results in $test == "string-to-be-slugified"
Twig Extension
{{ "String to be slugified"|slugify }}
License
MIT License
统计信息
- 总下载量: 563
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-24