Registry / utility / zelenin-yii2-slug-behavior

zelenin-yii2-slug-behavior

JSON →
library1.5.1phppackagistunverified

Yii2 slug behavior for generating URL-friendly slugs from model attributes.

composer require zelenin/yii2-slug-behavior
INSTALL
IMPORT
SIG · ZELENIN-YII2-SLUG-
Z
zelenin-yii2-slug-behavior
utilityphpv1.5.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Slug
use Zelenin\yii\behaviors\Slug;

Attach the Slug behavior to an ActiveRecord model to auto-generate slugs.

use Zelenin\yii\behaviors\Slug; $behavior = new Slug(['attribute' => 'title', 'slugAttribute' => 'slug']);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.5.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
Amazon
1
Resources
zelenin-yii2-slug-behavior — pip install zelenin-yii2-slug-behavior · libregistry