| Package Data | |
|---|---|
| Maintainer Username: | pantagruel964 |
| Maintainer Contact: | pantagruel964@gmail.com (pantagruel964) |
| Package Create Date: | 2017-01-03 |
| Package Last Update: | 2017-09-16 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-31 03:03:36 |
| Package Statistics | |
|---|---|
| Total Downloads: | 298 |
| Monthly Downloads: | 4 |
| Daily Downloads: | 0 |
| Total Stars: | 4 |
| Total Watchers: | 2 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
Laravel 5 has it's own function str_slug to revert cyrillic characters into translit. But it is not quite right for Yandex.
For example, if you make your URL like this: $slug = str_slug('ёлка') function return result elka. It's not good for SEO. Your URL won't be highlighted into the SERP:

The package makes slug characters in according to Yandex rules, in particular such characters as ё, щ, я, ю, ж, ц. As result Yandex will highlight keyword in URL into the SERP

composer require pantagruel964/laravel5-yandex-slug
After updating composer, add the service provider and facade in config/app.php
'providers' => [
...
Pantagruel964\Laravel5YandexSlug\SlugServiceProvider::class
...
]
'aliases' => [
...
'Slug' => Pantagruel964\Laravel5YandexSlug\Facades\Slug::class
...
]
$slug = Slug::make('ёлка')
This package for Laravel is open-sourced software licensed under the MIT license