yii2-persian-slug yii2 persian and arabic SluggableBehavior

yii2-persian-slug

  1. Installation
  2. Usage
  3. License

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.

0 0
1 follower
0 downloads
Yii Version: 2.0
License: GPL-3.0
Category: Others
Tags: slug, yii2
Developed by: mr.rezaee
Created on: Feb 7, 2018
Last updated: 6 years ago

Related Extensions