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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pesto/yii2-path-behavior

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

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 4w 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 31% 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

3741d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38011533?v=4)[Pesto Technologies](/maintainers/Pesto)[@pesto](https://github.com/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

[mdmsoft/yii2-autonumber

Auto number extension for the Yii framework

1831.2k](/packages/mdmsoft-yii2-autonumber)[baibaratsky/yii2-serialized-attributes-behavior

Yii2 Serialized Attributes Behavior

1175.1k9](/packages/baibaratsky-yii2-serialized-attributes-behavior)[asinfotrack/yii2-audittrail

Yii2-audittrail is a behavior and a set of widgets to track all modifications performed on a model

1627.3k](/packages/asinfotrack-yii2-audittrail)[valentinek/yii2-closure-table-behavior

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

1615.4k](/packages/valentinek-yii2-closure-table-behavior)[v0lume/yii2-meta-tags

DB based model meta data for SEO

194.1k](/packages/v0lume-yii2-meta-tags)

PHPackages © 2026

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