Skip to content

Latest commit

 

History

History
executable file
·
41 lines (28 loc) · 675 Bytes

README.md

File metadata and controls

executable file
·
41 lines (28 loc) · 675 Bytes

Yii2 dompdf formatter

See example below.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist bariew/yii2--dompdf-formatter "*"

or add

"bariew/yii2-dompdf-formatter": "*"

to the require section of your composer.json file.

Usage

    Define app component in main config components section like in this example:
    'components' => [
    ...
        'formatters' => [
            'pdf' => [
                'class' => 'bariew\components\ResponseFormatter',
            ],
        ],
    ]