ivanlemeshev / laravel4-cyrillic-slug
Laravael 4 slug maker for Cyrillic strings
Installs: 7 235
Dependents: 0
Suggesters: 0
Security: 0
Stars: 13
Watchers: 4
Forks: 8
Open Issues: 0
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2020-05-09 04:59:49 UTC
README
Supported Alphabets
- Russian
- Kazakh
- Ukrainian
Installation
You should install this package through Composer.
Edit your project's composer.json
file to require ivanlemeshev/laravel-cyrillic-slug
.
"require": {
"ivanlemeshev/laravel4-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.
'Ivanlemeshev\Laravel4CyrillicSlug\SlugServiceProvider',
And add a new item to the aliases array.
'Slug' => 'Ivanlemeshev\Laravel4CyrillicSlug\Facades\Slug',
Usage
Call of the method: Slug::make($text)
Call of the method with specific separator: Slug::make($text, '_')
.