bariew/yii2-dompdf-formatter

Formats response in pdf

Installs: 105

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 1

Type:yii2-extension

dev-master 2015-10-15 19:35 UTC

README

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