bariew/yii2-dompdf-formatter

Formats response in pdf

Installs: 272

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 1

Type:yii2-extension

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

This package is auto-updated.

Last update: 2024-11-16 15:22:20 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',
            ],
        ],
    ]