Skip to content
Formats response in pdf
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
ResponseFormatter.php
composer.json

README.md

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',
            ],
        ],
    ]

You can’t perform that action at this time.