Skip to content

bariew/yii2-dompdf-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Formats response in pdf

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages