PHPackages                             skeeks/yii2-ya-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. skeeks/yii2-ya-slug

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

skeeks/yii2-ya-slug
===================

Yii2 yandex slug

1.0.3(5y ago)24.3k2BSD-3-ClausePHP

Since Nov 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/skeeks-semenov/yii2-ya-slug)[ Packagist](https://packagist.org/packages/skeeks/yii2-ya-slug)[ Docs](https://skeeks.com/)[ RSS](/packages/skeeks-yii2-ya-slug/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (2)Versions (5)Used By (2)

Yii2 yandex slug (Semantic URL)
===============================

[](#yii2-yandex-slug-semantic-url)

This solution allows you to generate good slug urls. ([slug wiki](https://en.wikipedia.org/wiki/Semantic_URL)).

Direct generation is engaged in a proven solution [cocur/slugify](https://github.com/cocur/slugify).

Transliteration yandex

[![Latest Stable Version](https://camo.githubusercontent.com/8d25b97876fc3c912de97bcf1a9e60136c735ce1045d51a8da0292ccfbcfa77a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736b65656b732f796969322d79612d736c75672e737667)](https://packagist.org/packages/skeeks/yii2-ya-slug)[![Total Downloads](https://camo.githubusercontent.com/3b93e06974a0d80eae985a1c314d1c830e919652e2d1e4a6982801db036a0952/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736b65656b732f796969322d79612d736c75672e737667)](https://packagist.org/packages/skeeks/yii2-ya-slug)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist skeeks/yii2-ya-slug "*"

```

or add

```
"skeeks/yii2-ya-slug": "*"

```

How to use
----------

[](#how-to-use)

### behavior

[](#behavior)

Attach the behavior in your model:

```
public function behaviors()
{
    return [
        'slug' => [
            'class' => 'skeeks\yii2\yaslug\YaSlugBehavior',
            'slugAttribute' => 'slug',                      //The attribute to be generated
            'attribute' => 'name',                          //The attribute from which will be generated
            // optional params
            'maxLength' => 64,                              //Maximum length of attribute slug
            'minLength' => 3,                               //Min length of attribute slug
            'ensureUnique' => true,
        ]
    ];
}
```

### helper

[](#helper)

```
echo skeeks\yii2\yaslug\YaSlugBehavior::slugify("Тестовая строка");
```

Links
-----

[](#links)

- [Github](https://github.com/skeeks-semenov/yii2-ya-slug)
- [Changelog](https://github.com/skeeks-semenov/yii2-ya-slug/blob/master/CHANGELOG.md)
- [Issues](https://github.com/skeeks-semenov/yii2-ya-slug/issues)
- [Packagist](https://packagist.org/packages/skeeks/yii2-ya-slug)

Demo (view urls)
----------------

[](#demo-view-urls)

-

---

> [![skeeks!](https://camo.githubusercontent.com/e80b006782c0ce0ce23f8e2e2530130e856f2f49c6a5a8e0e15eaf0c87d25d7b/68747470733a2f2f736b65656b732e636f6d2f696d672f6c6f676f2f6c6f676f2d6e6f2d7469746c652d383070782e706e67)](https://skeeks.com)
> *SkeekS CMS (Yii2) — fast, simple, effective!*
> [skeeks.com](https://skeeks.com) | [cms.skeeks.com](https://cms.skeeks.com)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

Every ~350 days

Total

4

Last Release

2057d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/785306737dd13e3ea6826dfc04ab29ececa88f560d054ff595d64853cb878219?d=identicon)[skeeks-semenov](/maintainers/skeeks-semenov)

---

Top Contributors

[![skeeks-semenov](https://avatars.githubusercontent.com/u/9209305?v=4)](https://github.com/skeeks-semenov "skeeks-semenov (9 commits)")

---

Tags

semanticseoskeeksskeeks-cmsslugsluggableslugifyurlyiiyii2yii2-cmsyii2-extensionslugyii2Behavioryii

### Embed Badge

![Health badge](/badges/skeeks-yii2-ya-slug/health.svg)

```
[![Health](https://phpackages.com/badges/skeeks-yii2-ya-slug/health.svg)](https://phpackages.com/packages/skeeks-yii2-ya-slug)
```

###  Alternatives

[sjaakp/yii2-taggable

Manage tags of ActiveRecord in Yii2.

3030.6k](/packages/sjaakp-yii2-taggable)[brussens/yii2-maintenance-mode

Maintenance mode component for Yii framework 2.x.x version.

78256.3k5](/packages/brussens-yii2-maintenance-mode)[baibaratsky/yii2-serialized-attributes-behavior

Yii2 Serialized Attributes Behavior

1174.1k9](/packages/baibaratsky-yii2-serialized-attributes-behavior)

PHPackages © 2026

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