ivanlemeshev / laravel5-cyrillic-slug by ivanlemeshev

Laravael 5 slug maker for Cyrillic strings
36,825
24
4
Package Data
Maintainer Username: ivanlemeshev
Maintainer Contact: vanlmshv@gmail.com (Ivan Lemeshev)
Package Create Date: 2015-02-28
Package Last Update: 2016-10-12
Language: PHP
License: MIT
Last Refreshed: 2020-11-30 15:12:44
Package Statistics
Total Downloads: 36,825
Monthly Downloads: 314
Daily Downloads: 10
Total Stars: 24
Total Watchers: 4
Total Forks: 12
Total Open Issues: 0

Laravel 5 Cyrillic Slug

Latest Stable Version Total Downloads Latest Unstable Version License

Supported Alphabets

* Russian
* Kazakh
* Ukrainian

Installation

You should install this package through Composer.

Edit your project's composer.json file to require ivanlemeshev/laravel5-cyrillic-slug.

"require": {
    "ivanlemeshev/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.

'IvanLemeshev\Laravel5CyrillicSlug\SlugServiceProvider',

And add a new item to the aliases array.

'Slug' => 'IvanLemeshev\Laravel5CyrillicSlug\SlugFacade',

Usage

Call of the method: Slug::make($text)

Call of the method with specific separator: Slug::make($text, '_').