developit/yii2-persian-slug

yii2 persian slug

Installs: 168

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

1.1 2019-05-31 17:26 UTC

This package is auto-updated.

Last update: 2024-02-29 02:53:04 UTC


README

yii2 persian slug

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist developit/yii2-persian-slug "*"

or add

"developit/yii2-persian-slug": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

    public function behaviors()
    {
        return [
            [
                'class' => PesianSluggableBehavior::className(),
                'attribute' => 'title',
            ],
        ];
    }

License

yii2-persian-slug is an open source project created by Ehsan Rezaei(http://www.developit.ir) that is licensed under GPL-3.0.