PHP code example of altynbek07 / yii2-typograph

1. Go to this page and download the library: Download altynbek07/yii2-typograph library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

altynbek07 / yii2-typograph example snippets


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

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