kolpikov/laravel-slug
最新稳定版本:1.0.1
Composer 安装命令:
composer require kolpikov/laravel-slug
包简介
Laravael 5 slug maker for Cyrillic strings
README 文档
README
This library was forked from ivanlemeshev/laravel5-cyrillic-slug
Supported Alphabets
* Russian
* Kazakh
* Ukrainian
Installation
You should install this package through Composer.
Edit your project's composer.json file to require Kolpikov/laravel5-cyrillic-slug.
"require": {
"Kolpikov/laravel5-cyrillic-slug": "1.0.0"
},
Next, update Composer from the Terminal:
composer update
Once this operation completes, the final step is to add the service provider.
Open app/config/app.php, and add a new item to the providers array.
'Kolpikov\LaravelSlug\SlugServiceProvider',
And add a new item to the aliases array.
'Slug' => 'Kolpikov\LaravelSlug\SlugFacade',
Usage
Call of the method: Slug::make($text)
Call of the method with specific separator: Slug::make($text, '_').
License
This project is licensed under the MIT license.
统计信息
- 总下载量: 1.16k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-12