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

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

mgrulich/php-svg-lib
====================

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

v0.5(8y ago)024LGPL-3.0PHP

Since May 6Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mgrulich/php-svg-lib)[ Packagist](https://packagist.org/packages/mgrulich/php-svg-lib)[ Docs](https://github.com/PhenX/php-svg-lib)[ RSS](/packages/mgrulich-php-svg-lib/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

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

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

[![Build Status](https://camo.githubusercontent.com/954abaefc5d4607afe05c4f69dd27291967e2f12442dade2cdf71b4db3b3c188/68747470733a2f2f7472617669732d63692e6f72672f5068656e582f7068702d7376672d6c69622e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/PhenX/php-svg-lib)[![Coverage Status](https://camo.githubusercontent.com/f4d9e36620afc1a20ae380cf5e530918301171161859d29810d91a38331b790e/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f5068656e582f7068702d7376672d6c69622f62616467652e737667)](https://coveralls.io/r/PhenX/php-svg-lib)

[![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](http://dompdf.github.io) project.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.1% 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.

###  Release Activity

Cadence

Every ~260 days

Total

5

Last Release

3031d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/781036?v=4)[Martin](/maintainers/mgrulich)[@mgrulich](https://github.com/mgrulich)

---

Top Contributors

[![PhenX](https://avatars.githubusercontent.com/u/42170?v=4)](https://github.com/PhenX "PhenX (27 commits)")[![sgc-fireball](https://avatars.githubusercontent.com/u/4587633?v=4)](https://github.com/sgc-fireball "sgc-fireball (4 commits)")[![mgrulich](https://avatars.githubusercontent.com/u/781036?v=4)](https://github.com/mgrulich "mgrulich (2 commits)")[![Orken](https://avatars.githubusercontent.com/u/2988240?v=4)](https://github.com/Orken "Orken (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[phenx/php-svg-lib

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

1.4k145.4M36](/packages/phenx-php-svg-lib)[dompdf/php-svg-lib

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

1.4k37.0M10](/packages/dompdf-php-svg-lib)[42coders/document-templates

Document template management package.

19940.0k](/packages/42coders-document-templates)[yetiforce/yetiforcepdf

Library that generate pdf files from html.

13128.6k1](/packages/yetiforce-yetiforcepdf)[qipsius/tcpdf-bundle

A bundle to easily integrate TCPDF into Symfony

23749.5k](/packages/qipsius-tcpdf-bundle)[macopedia/magmi2

Magento Mass Importer 'Magmi' for Magento 2

11615.7k](/packages/macopedia-magmi2)

PHPackages © 2026

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