2017 © Pedro Peláez
 

yii2-extension slug-behavior

Slug behavior for Bridge

image

yii2-bridge/slug-behavior

Slug behavior for Bridge

  • Tuesday, June 26, 2018
  • by naffiq
  • Repository
  • 2 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Yii2 Bridge Slug Behavior

Yii2 bridge slug behavior, (*1)

This code is inspired by https://github.com/zelenin/yii2-slug-behavior, with correction of errors related to the Kazakh language. Full documentation about this behavior, you can read on the above repository., (*2)

Installation

Composer

The preferred way to install this extension is through Composer., (*3)

Either run composer require yii2-bridge/slug-behavior:^0.1, (*4)

or add "yii2-bridge/slug-behavior": "^0.1" to the require section of your composer.json, (*5)

Using

Attach the behavior in your model:, (*6)

public function behaviors()
{
    return [
        'slug' => [
            'class' => 'Bridge\Slug\BridgeSlugBehavior',
            'slugAttribute' => 'slug',
            'attribute' => 'title',
            // If intl extension is enabled, see http://userguide.icu-project.org/transforms/general.
            'transliterateOptions' => 'Russian-Latin/BGN; Any-Latin; Latin-ASCII; NFD; [:Nonspacing Mark:] Remove; NFC;'
        ],
    ];
}

Author

Altynbek Kazezov, e-mail: altinbek__97@mail.ru, (*7)

The Versions

26/06 2018

dev-master

9999999-dev

Slug behavior for Bridge

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Altynbek Kazezov

yii2 admin sluggable slug bridge

26/06 2018

v0.1.2

0.1.2.0

Slug behavior for Bridge

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Altynbek Kazezov

yii2 admin sluggable slug bridge