phenx/php-svg-lib
A lightweight PHP library for reading, parsing, and rendering SVG files. It handles paths, basic shapes, gradients, text, styles, and CSS, and is best known as the SVG engine behind Dompdf, letting PHP applications embed vector graphics in generated PDFs without external dependencies.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| dompdf/php-svg-lib | 0.86 | PHP library for parsing and rendering SVG documents. Provides an object model for SVG elements, support for styles, paths, and basic shapes, and can render to common backends (e.g., PDF via dompdf). Useful for embedding SVG graphics in PDFs. | 1,446 | 1,447 | 88 | 11M | 25 | 26.0 | 64.3 | LGPL-3.0 | 10 months ago | |
| dompdf/php-font-lib | 0.85 | PHP font library used by dompdf to read, parse, and manipulate font files (TrueType, OpenType, WOFF). Provides glyph metrics, font subsetting, and embedding support, enabling accurate text rendering in generated PDFs and other font-processing tasks. | 1,797 | 1,799 | 257 | 6M | 17 | 30.7 | 58.6 | LGPL-2.1 | 9 months ago | |
| phenx/php-font-lib | 0.85 | Read and parse TrueType, OpenType (TT glyphs) and WOFF fonts in PHP. Extract basic/advanced metadata, metrics, glyph names and shapes, generate Adobe Font Metrics (AFM), and build font subsets. Used by dompdf for font handling. | 1,797 | 1,808 | 257 | 2M | 17 | 30.5 | 51.5 | LGPL-2.1 | 9 months ago | |
| dompdf/dompdf | 0.84 | Dompdf is a PHP library that converts HTML to PDF using a mostly CSS 2.1-compliant layout and rendering engine. It supports external stylesheets, complex tables, images, inline PHP, and basic SVG without external PDF libraries. | 11,208 | 11,356 | 1,848 | 12M | 513 | 83.5 | 72.1 | LGPL-2.1 | 3 months ago | |
| psliwa/php-pdf | 0.84 | Pure-PHP library for generating PDF documents. Build pages with text, images, shapes, colors, and barcodes; supports fonts, transformations, and simple drawing APIs. Useful for reports, invoices, and dynamic PDFs without external binaries. | 334 | 345 | 78 | 2K | 57 | 20.9 | 35.0 | MIT | — | |
| fpdf/fpdf | 0.84 | FPDF is a lightweight PHP class for generating PDF files with pure PHP and no external dependencies. It supports pages, text, images, links, and basic drawing, making it a simple choice for server-side PDF creation. | 51 | 57 | 24 | 127K | 1 | 1.1 | 46.8 | NOASSERTION | — | |
| enshrined/svg-sanitize | 0.84 | PHP SVG sanitizer based on DOMPurify that cleans untrusted SVG/XML, strips dangerous tags and remote references, supports custom whitelists, minification, and reports sanitization issues. | 557 | 557 | 69 | 3M | 18 | 30.6 | 68.1 | GPL-2.0 | 2 weeks ago | |
| atelier/svg | 0.83 | atelier/svg is a Laravel package for managing SVG assets. It provides a clean API for loading, sanitizing, caching, and rendering SVG files, so you can safely embed icons and images in Blade views with minimal boilerplate. | 14 | 11 | 1 | 453 | 0 | 17.9 | 23.9 | MIT | 1 month ago | |
| meyfa/php-svg | 0.83 | Lightweight PHP library to create, read, and manipulate SVGs. Build SVG documents programmatically, edit shapes and attributes via a DOM-like API, and export clean SVG/XML. Handy for generating icons, diagrams, and server-side graphics without external dependencies. | 550 | 554 | 102 | 672K | 27 | 23.4 | 52.7 | MIT | 1 year ago | |
| netgen/htmlpdfapi | 0.83 | Netgen HTMLPDFAPI is a PHP client for the HTMLPDFAPI service that converts HTML to PDF. Send raw HTML or a URL, configure your API credentials, and generate PDFs for invoices, reports, and other documents from your application. | 10 | 10 | 5 | 0 | 0 | 0.1 | — | GPL-2.0 | — | |
| gridonic/princexml-php | 0.83 | A lightweight PHP wrapper for PrinceXML that simplifies converting HTML and CSS into high-quality PDFs. It offers a clean API for running Prince, handling input/output files and binary paths, making it easy to generate print-ready documents from PHP or Laravel applications. | 8 | 8 | 10 | 3K | 1 | 0.3 | 24.1 | MIT | 9 years ago | |
| dmhendricks/file-icon-vectors | 0.83 | A PHP library that maps file extensions to crisp SVG icons, making it easy to display accurate file-type icons for documents, media, archives, and more. Includes multiple icon styles, simple helper methods, and Laravel support for quick integration. | 381 | — | 77 | — | 14 | 8.4 | 4.9 | MIT | 8 years ago |
|
| zendframework/zendpdf | 0.83 | ZendPdf is a PHP library for creating and manipulating PDF documents. It supports drawing text, images, and shapes, page management, and importing existing PDFs. Originally part of Zend Framework, it is a legacy component and no longer actively maintained. | 85 | 85 | 90 | 34K | 9 | 3.1 | 28.1 | BSD-3-Clause | — | |
| littlerocket/php-pdf | 0.83 | A lightweight PHP package from littlerocket for generating PDFs with a clean, expressive API. Build documents programmatically, add text, images and pages, then stream or save the output—designed to fit neatly into Laravel applications. | 0 | 0 | 3 | 0 | 0 | 14.1 | — | MIT | 3 months ago | |
| kartsims/easysvg | 0.83 | EasySVG is a lightweight PHP library for creating SVG files programmatically. It offers simple methods for adding text, shapes, lines, and paths, making it useful for generating dynamic badges, icons, charts, and other vector graphics in PHP applications. | 100 | — | 43 | — | 5 | 3.5 | 2.7 | — | 3 years ago |
|
| vierwd/svg-inliner | 0.83 | A Laravel package for inlining SVG images directly into your HTML, letting you style and animate them with CSS and control their colors. Useful for icons and illustrations where external image references would block styling. Lightweight and easy to integrate. | 1 | 1 | 0 | 498 | 0 | 0.0 | 33.1 | MIT | 3 years ago | |
| tfox/mpdf-port-bundle | 0.83 | A Symfony bundle that integrates the mPDF library, providing service configuration and a straightforward way to generate PDFs from HTML in Symfony applications. | 0 | 1 | — | 2K | — | 0.0 | 46.2 | — | — | |
| prinsfrank/pdfparser | 0.83 | prinsfrank/pdfparser is an MIT-licensed PDF parsing library for PHP 8.1+ with no external dependencies. It is on average 2.6x faster and 5x more memory-efficient than smalot/pdfparser, supports encrypted PDFs, and is actively maintained. | 188 | 189 | 16 | 34K | 6 | 35.1 | 38.7 | MIT | 1 day ago | |
| pontedilana/php-weasyprint | 0.83 | PhpWeasyPrint is a PHP wrapper for WeasyPrint that generates PDFs from URLs or HTML. Inspired by Snappy and built as a drop-in replacement, it offers a strictly typed GeneratorInterface and requires PHP 8.3+ plus WeasyPrint 60 or greater. | 80 | 79 | 13 | 50K | 1 | 19.7 | 42.5 | MIT | 5 months ago | |
| creative-web-solution/svg-chart-bundle | 0.83 | Symfony bundle to generate SVG charts (pie/donut and line) using meyfa/php-svg. Create charts from JSON-configured data and styles, including legend labels, slice colors, donut thickness, line connectors, dimensions, and offsets; returns SVG responses. | 0 | 0 | 0 | 29 | 0 | 0.0 | 20.4 | MIT | — |
How can I help you explore Laravel packages today?