PHPackages                             dompdf/php-svg-lib - 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. dompdf/php-svg-lib

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

dompdf/php-svg-lib
==================

A library to read, parse and export to PDF SVG files.

1.0.2(4mo ago)1.4k28.4M—1.9%82[24 issues](https://github.com/dompdf/php-svg-lib/issues)[1 PRs](https://github.com/dompdf/php-svg-lib/pulls)7LGPL-3.0-or-laterPHPPHP ^7.1 || ^8.0CI passing

Since May 6Pushed 4mo ago7 watchersCompare

[ Source](https://github.com/dompdf/php-svg-lib)[ Packagist](https://packagist.org/packages/dompdf/php-svg-lib)[ Docs](https://github.com/dompdf/php-svg-lib)[ RSS](/packages/dompdf-php-svg-lib/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (18)Used By (7)

SVG file parsing / rendering library
====================================

[](#svg-file-parsing--rendering-library)

[![Build Status](https://github.com/dompdf/php-svg-lib/actions/workflows/test.yml/badge.svg)](https://github.com/dompdf/php-svg-lib/actions/workflows/test.yml)

[![Latest Stable Version](https://camo.githubusercontent.com/fd639f2410a0789e4bf75bb84f849db6245873f31beb2cd539c8509bea4b9513/68747470733a2f2f706f7365722e707567782e6f72672f7068656e782f7068702d7376672d6c69622f762f737461626c65)](https://packagist.org/packages/phenx/php-svg-lib)[![Total Downloads](https://camo.githubusercontent.com/13a8873a2d7a27f727140016b60e2e88da5845262064b626780b05adf31596e1/68747470733a2f2f706f7365722e707567782e6f72672f7068656e782f7068702d7376672d6c69622f646f776e6c6f616473)](https://packagist.org/packages/phenx/php-svg-lib)[![Latest Unstable Version](https://camo.githubusercontent.com/0ce8e9402dffb532901921e64408b8748dca23e7ad712191346181a9de682cbe/68747470733a2f2f706f7365722e707567782e6f72672f7068656e782f7068702d7376672d6c69622f762f756e737461626c65)](https://packagist.org/packages/phenx/php-svg-lib)[![License](https://camo.githubusercontent.com/791a5a65df078b3fb038abb5d5ec7332e0875972d84170c6cf14e2aa566560ab/68747470733a2f2f706f7365722e707567782e6f72672f7068656e782f7068702d7376672d6c69622f6c6963656e7365)](https://packagist.org/packages/phenx/php-svg-lib)

The main purpose of this lib is to rasterize SVG to a surface which can be an image or a PDF for example, through a `\Svg\Surface` PHP interface.

This project was initialized by the need to render SVG documents inside PDF files for the [DomPdf](https://github.com/dompdf/dompdf) project.

###  Health Score

70

—

ExcellentBetter than 100% of packages

Maintenance75

Regular maintenance activity

Popularity75

Solid adoption and visibility

Community36

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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.

###  Release Activity

Cadence

Every ~243 days

Recently: every ~169 days

Total

17

Last Release

136d ago

Major Versions

0.5.4 → 1.0.02024-04-29

PHP version history (3 changes)0.3.4PHP ^7.4 || ^8.0

0.4.1PHP ^7.1 || ^7.2 || ^7.3 || ^7.4 || ^8.0

0.5.0PHP ^7.1 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7300b27cf32acabfa6335244ecda3f65760b4865d290837a7170f8e25b436c83?d=identicon)[bsweeney](/maintainers/bsweeney)

---

Top Contributors

[![bsweeney](https://avatars.githubusercontent.com/u/485897?v=4)](https://github.com/bsweeney "bsweeney (48 commits)")[![PhenX](https://avatars.githubusercontent.com/u/42170?v=4)](https://github.com/PhenX "PhenX (41 commits)")[![PowerKiKi](https://avatars.githubusercontent.com/u/72603?v=4)](https://github.com/PowerKiKi "PowerKiKi (10 commits)")[![ssddanbrown](https://avatars.githubusercontent.com/u/8343178?v=4)](https://github.com/ssddanbrown "ssddanbrown (8 commits)")[![msch-alpgis](https://avatars.githubusercontent.com/u/5549925?v=4)](https://github.com/msch-alpgis "msch-alpgis (4 commits)")[![sgc-fireball](https://avatars.githubusercontent.com/u/4587633?v=4)](https://github.com/sgc-fireball "sgc-fireball (4 commits)")[![Al2Klimov](https://avatars.githubusercontent.com/u/6053266?v=4)](https://github.com/Al2Klimov "Al2Klimov (3 commits)")[![helmutschneider](https://avatars.githubusercontent.com/u/6281919?v=4)](https://github.com/helmutschneider "helmutschneider (3 commits)")[![luxin88](https://avatars.githubusercontent.com/u/874056?v=4)](https://github.com/luxin88 "luxin88 (3 commits)")[![nickolanack](https://avatars.githubusercontent.com/u/8965209?v=4)](https://github.com/nickolanack "nickolanack (3 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (2 commits)")[![Orken](https://avatars.githubusercontent.com/u/2988240?v=4)](https://github.com/Orken "Orken (2 commits)")[![fitztrev](https://avatars.githubusercontent.com/u/271432?v=4)](https://github.com/fitztrev "fitztrev (2 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (2 commits)")[![alexmigf](https://avatars.githubusercontent.com/u/533273?v=4)](https://github.com/alexmigf "alexmigf (1 commits)")[![tacman](https://avatars.githubusercontent.com/u/619585?v=4)](https://github.com/tacman "tacman (1 commits)")[![LinkingYou](https://avatars.githubusercontent.com/u/23259908?v=4)](https://github.com/LinkingYou "LinkingYou (1 commits)")[![michaeldyrynda](https://avatars.githubusercontent.com/u/558441?v=4)](https://github.com/michaeldyrynda "michaeldyrynda (1 commits)")[![UCIS](https://avatars.githubusercontent.com/u/438391?v=4)](https://github.com/UCIS "UCIS (1 commits)")[![kylechallis](https://avatars.githubusercontent.com/u/2374759?v=4)](https://github.com/kylechallis "kylechallis (1 commits)")

---

Tags

parserparsingpdfphpsvg

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dompdf-php-svg-lib/health.svg)

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

###  Alternatives

[phenx/php-svg-lib

A library to read, parse and export to PDF SVG files.

1.4k141.6M36](/packages/phenx-php-svg-lib)[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.1k57.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)

PHPackages © 2026

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