PHPackages                             alex290/yii2-sef - 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. alex290/yii2-sef

ActiveYii2-extension

alex290/yii2-sef
================

Sef URL

1.0.1(7y ago)1151↓100%1MITPHP

Since Dec 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/alex290/yii2-sef)[ Packagist](https://packagist.org/packages/alex290/yii2-sef)[ RSS](/packages/alex290-yii2-sef/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Yii2 ЧПУ ссылок (URL) для сайта
===============================

[](#yii2-чпу-ссылок-url-для-сайта)

Установка
---------

[](#установка)

Предпочтительный способ установки этого расширения через [composer](http://getcomposer.org/download/).

Запустить

```
php composer.phar require --prefer-dist alex290/yii2-sef "*"

```

или добавить

```
"alex290/yii2-sef": "*"

```

в секцию require вашего `composer.json` файла.

**И запустить миграцию файла**

```
yii migrate/up --migrationPath=@vendor/alex290/yii2-sef/migrations

```

Можно создать вручную. А именно - таблицу `sef`, в ней только 3 поля:

id (primaryKey, AUTO\_INCREMENT);

link (varchar(255));

link\_sef (varchar(255)).

Использование
-------------

[](#использование)

В файле: `config/web.php` прописать

```
    'urlManager' => [
    'enablePrettyUrl' => true,
    'showScriptName' => false,
    'rules' => [
            // Тут свои правила.
            [
                'class' => 'alex290\sef\SefRule',
                'connectionID' => 'db',
            ],
        ],
    ],

```

Для админки можно создать модель `Sef`, а можно использовать готовую `alex290\sef\Sef`

'link' = это поле оригинальной ссылки например, article/view?id=49

'link\_sef' = это поле синоним URL

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

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 ~184 days

Total

2

Last Release

2874d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/35fd7f2d7b8be6fef06a2c6aee576282f55559098fd5d6075a7fedc80df48f34?d=identicon)[alex290](/maintainers/alex290)

---

Top Contributors

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

---

Tags

yii2extensionsef

### Embed Badge

![Health badge](/badges/alex290-yii2-sef/health.svg)

```
[![Health](https://phpackages.com/badges/alex290-yii2-sef/health.svg)](https://phpackages.com/packages/alex290-yii2-sef)
```

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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