PHPackages                             celsowm/pagyra-php - 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. celsowm/pagyra-php

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

celsowm/pagyra-php
==================

A powerful oop PDF generator and HTML to PDF converter in PHP

10PHP

Since Sep 23Pushed 8mo agoCompare

[ Source](https://github.com/celsowm/pagyra-php)[ Packagist](https://packagist.org/packages/celsowm/pagyra-php)[ RSS](/packages/celsowm-pagyra-php/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Pagyra PHP
==========

[](#pagyra-php)

A powerful object-oriented library for PDF generation and HTML-to-PDF conversion in pure PHP.

---

Badges
------

[](#badges)

- **Latest Stable Version**
- **Total Downloads**
- **License**

---

Overview
--------

[](#overview)

Pagyra PHP is a robust and flexible library for creating PDF documents programmatically or directly converting from HTML/CSS. Designed with a fluent, object-oriented API, it provides fine-grained control over layout, styles, images, tables, and more — without relying on extensions like **imagick** or **gd**.

📦 Package on Packagist: [celsowm/pagyra-php](https://packagist.org/packages/celsowm/pagyra-php)

---

Features
--------

[](#features)

### Programmatic PDF Generation

[](#programmatic-pdf-generation)

- Add text, paragraphs, lists, tables, and images.
- Precise control of fonts (TTF), colors, spacing, alignment, and line breaks.
- Create complex layouts with blocks, columns, and positioning (relative, absolute, fixed, sticky).
- Rounded borders, text shadows, and underlines.
- Add clickable links.
- Define headers and footers repeated on every page.

### HTML to PDF Conversion

[](#html-to-pdf-conversion)

- Built-in HTML parser.
- Supports inline and embedded CSS.
- Renders common tags such as ``, ``, ``, ``, ``, ``, ``, ``, ``, etc.
- Applies basic CSS styles (`color`, `font-size`, `text-align`, `font-weight`, `text-decoration`, `margin`, etc.).

### Advanced Features

[](#advanced-features)

- Linear and radial gradients (preview/development).
- Automatic page breaks.
- Block height measurement before rendering.
- Multiple fonts and variants (bold, italic).

---

Requirements
------------

[](#requirements)

- PHP &gt;= 8.2
- DOMDocument extension (enabled by default).

---

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

[](#installation)

Install via Composer:

```
composer require celsowm/pagyra-php
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance42

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor1

Top contributor holds 98.9% 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://avatars.githubusercontent.com/u/369336?v=4)[celsowm](/maintainers/celsowm)[@celsowm](https://github.com/celsowm)

---

Top Contributors

[![celsowm](https://avatars.githubusercontent.com/u/369336?v=4)](https://github.com/celsowm "celsowm (94 commits)")[![google-labs-jules[bot]](https://avatars.githubusercontent.com/in/842251?v=4)](https://github.com/google-labs-jules[bot] "google-labs-jules[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/celsowm-pagyra-php/health.svg)

```
[![Health](https://phpackages.com/badges/celsowm-pagyra-php/health.svg)](https://phpackages.com/packages/celsowm-pagyra-php)
```

###  Alternatives

[tarfin-labs/easy-pdf

Makes pdf processing easy.

1719.9k](/packages/tarfin-labs-easy-pdf)

PHPackages © 2026

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