PHPackages                             pesto/yii2-path-behavior - 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. pesto/yii2-path-behavior

ActiveYii2-extension

pesto/yii2-path-behavior
========================

Automatic generation url path for the model while saving model/

0.1.0(10y ago)014nonePHP

Since Apr 1Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Pesto-kun/yii2-path-behavior)[ Packagist](https://packagist.org/packages/pesto/yii2-path-behavior)[ RSS](/packages/pesto-yii2-path-behavior/feed)WikiDiscussions master Synced 1mo ago

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

Behavior для генерации URL адреса модели при сохранении.

### Install

[](#install)

Выполните команду

```
$ php composer.phar require pesto/yii2-path-behavior "*"

```

или добавьте

```
"pesto/yii2-path-behavior": "*"

```

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

### Usage

[](#usage)

Теперь можно в методе `behaviors()` модели указать:

```
  public function behaviors()
  {
      return [
          ...
          [
              'class' => PathBehavior::className(),
              'fieldName' => 'path',          //Поле для генерации пути
              'fromFieldName' => 'title'      //Поле, за основу которого берется строка
          ]
          ...
      ];
  }
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

3691d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/94926d7a68a6c96aabd54efbff5f1d8c6f79777581baedbc177dc8d5c7bebc89?d=identicon)[Pesto](/maintainers/Pesto)

---

Top Contributors

[![Pesto-kun](https://avatars.githubusercontent.com/u/8971843?v=4)](https://github.com/Pesto-kun "Pesto-kun (1 commits)")

---

Tags

urlpathyii2Behavior

### Embed Badge

![Health badge](/badges/pesto-yii2-path-behavior/health.svg)

```
[![Health](https://phpackages.com/badges/pesto-yii2-path-behavior/health.svg)](https://phpackages.com/packages/pesto-yii2-path-behavior)
```

###  Alternatives

[voskobovich/yii2-linker-behavior

This behavior makes it easy to maintain many-to-many and one-to-many relations in your ActiveRecord models.

80319.0k9](/packages/voskobovich-yii2-linker-behavior)[mdmsoft/yii2-autonumber

Auto number extension for the Yii framework

1830.9k](/packages/mdmsoft-yii2-autonumber)[mdmsoft/yii2-ar-behaviors

Behaviors for Yii2

2024.6k1](/packages/mdmsoft-yii2-ar-behaviors)[arogachev/yii2-sortable

Sortable ActiveRecord for Yii 2 framework

1637.0k4](/packages/arogachev-yii2-sortable)[baibaratsky/yii2-serialized-attributes-behavior

Yii2 Serialized Attributes Behavior

1174.1k9](/packages/baibaratsky-yii2-serialized-attributes-behavior)[valentinek/yii2-closure-table-behavior

This extension allows you to get functional for closure table trees.

1615.3k](/packages/valentinek-yii2-closure-table-behavior)

PHPackages © 2026

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