PHPackages                             pantagruel964/laravel5-yandex-slug - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. pantagruel964/laravel5-yandex-slug

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pantagruel964/laravel5-yandex-slug
==================================

Generate slug into translit in according to Yandex rules for Laravel 5

1.0.0(9y ago)4356MITPHPPHP &gt;=5.4.0

Since Jan 3Pushed 8y ago2 watchersCompare

[ Source](https://github.com/pantagruel964/laravel5-yandex-slug)[ Packagist](https://packagist.org/packages/pantagruel964/laravel5-yandex-slug)[ RSS](/packages/pantagruel964-laravel5-yandex-slug/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Transliterate cyrillic characters in according to Yandex rules for Laravel 5
----------------------------------------------------------------------------

[](#transliterate-cyrillic-characters-in-according-to-yandex-rules-for-laravel-5)

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: [![not highlighted into the serp](https://camo.githubusercontent.com/481a7224c9d46b11cf0f8f7c71a6a4b08cadbe33f39e5e580310bc09b56649dd/687474703a2f2f733032302e726164696b616c2e72752f693732332f313730312f30622f3731373838666663663832342e6a7067)](https://camo.githubusercontent.com/481a7224c9d46b11cf0f8f7c71a6a4b08cadbe33f39e5e580310bc09b56649dd/687474703a2f2f733032302e726164696b616c2e72752f693732332f313730312f30622f3731373838666663663832342e6a7067)

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 [![highlighted into the serp](https://camo.githubusercontent.com/3df7542812a51db45dc5c233df693516cf9612cc242f6ea2371b840f561306e9/687474703a2f2f733031392e726164696b616c2e72752f693633332f313730312f33632f6638343930363861373337392e6a7067)](https://camo.githubusercontent.com/3df7542812a51db45dc5c233df693516cf9612cc242f6ea2371b840f561306e9/687474703a2f2f733031392e726164696b616c2e72752f693633332f313730312f33632f6638343930363861373337392e6a7067)

### Installation

[](#installation)

`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
...
]

```

### Using

[](#using)

`$slug = Slug::make('ёлка')`

### License

[](#license)

This package for Laravel is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3416d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b6a7c823c32690e87a643c579aa42f35334282920ed382ec84cb8d8b11d9a386?d=identicon)[pantagruel964](/maintainers/pantagruel964)

---

Top Contributors

[![pantagruel964](https://avatars.githubusercontent.com/u/13514364?v=4)](https://github.com/pantagruel964 "pantagruel964 (7 commits)")

---

Tags

sluglaravellaravel5yandextranslitcyrillic

### Embed Badge

![Health badge](/badges/pantagruel964-laravel5-yandex-slug/health.svg)

```
[![Health](https://phpackages.com/badges/pantagruel964-laravel5-yandex-slug/health.svg)](https://phpackages.com/packages/pantagruel964-laravel5-yandex-slug)
```

###  Alternatives

[jbroadway/urlify

A fast PHP slug generator and transliteration library that converts non-ascii characters for use in URLs.

6737.4M62](/packages/jbroadway-urlify)[brexis/laravel-workflow

Integerate Symfony Workflow component into Laravel.

283125.6k](/packages/brexis-laravel-workflow)[summerblue/generator

Extend Laravel's generators scaffold.

34139.9k](/packages/summerblue-generator)[salmanzafar/laravel-geocode

A Laravel Library to find Lat and Long of a given Specific Address

153.9k](/packages/salmanzafar-laravel-geocode)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
