altynbek07/yii2-typograph

Yii2 typograph

Installs: 86

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

v0.1.2 2018-04-24 07:51 UTC

This package is auto-updated.

Last update: 2024-04-10 20:08:53 UTC


README

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