Skip to content

altynbek07/yii2-typograph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 Typograph

Yii2 typograph behavior

Installation

Composer

The preferred way to install this extension is through Composer.

Either run composer require altynbek07/yii2-typograph:^0.1

or add "altynbek07/yii2-typograph": "^0.1" to the require section of your composer.json

Using

Attach the behavior in your model:

public function behaviors()
{
    return [
        'typograph' => [
            'class' => 'altynbek07\yii2Typograph\Typograph',
            'attributes' => 'text',
        ]
    ];
}

Typograph multiple attributes:

public function behaviors()
{
    return [
        'typograph' => [
            ...
            'attributes' => ['text', 'name'],
            ...
        ]
    ];
}

Author

Altynbek Kazezov, e-mail: altinbek__97@mail.ru