yiisoft/yii2 — pull request #3911 by creocoder (2014-06-17 00:12:56+00:00)
Title: [WIP] SluggableBehavior

Usage:

```php
class Post extends ActiveRecord
{
public function behaviors() {
return [
[
'class' => Sluggable::className(),
// use this
'attribute' => 'title',
// or this to customize
// 'value' => function ($event) {
// return Inflector::slug($this->title);
// },
],
];
}
}
```