PHPackages                             bariew/yii2-dompdf-formatter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. bariew/yii2-dompdf-formatter

ActiveYii2-extension[PDF &amp; Document Generation](/categories/documents)

bariew/yii2-dompdf-formatter
============================

Formats response in pdf

12811[1 issues](https://github.com/bariew/yii2-dompdf-formatter/issues)PHP

Since Oct 15Pushed 10y ago1 watchersCompare

[ Source](https://github.com/bariew/yii2-dompdf-formatter)[ Packagist](https://packagist.org/packages/bariew/yii2-dompdf-formatter)[ RSS](/packages/bariew-yii2-dompdf-formatter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 dompdf formatter
=====================

[](#yii2-dompdf-formatter)

See example below.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

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
-----

[](#usage)

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

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8214f36975034f4134506744cd956e8415491006c1b3512af22bf75f91165f06?d=identicon)[bariew](/maintainers/bariew)

---

Top Contributors

[![bariew](https://avatars.githubusercontent.com/u/827508?v=4)](https://github.com/bariew "bariew (2 commits)")[![vldmr-k](https://avatars.githubusercontent.com/u/2142055?v=4)](https://github.com/vldmr-k "vldmr-k (1 commits)")

### Embed Badge

![Health badge](/badges/bariew-yii2-dompdf-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/bariew-yii2-dompdf-formatter/health.svg)](https://phpackages.com/packages/bariew-yii2-dompdf-formatter)
```

###  Alternatives

[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.2k57.6M131](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)[setasign/tfpdf

This class is a modified version of FPDF that adds UTF-8 support. The latest version is based on FPDF 1.85.

426.1M30](/packages/setasign-tfpdf)[aspera/xlsx-reader

Spreadsheet reader library for XLSX files

52742.2k5](/packages/aspera-xlsx-reader)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
