NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #808 most downloaded on Packagist
Read, edit, write, and render SVG files with PHP
Latest stable
v0.16.1
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 8 months
Nearly every release is documented
notes for 35 of 35 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
35 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
fix: Fix PHP 8.4 deprecations by @norkunas in https://github.com/meyfa/php-svg/pull/241
Full Changelog: https://github.com/meyfa/php-svg/compare/v0.16.0...v0.16.1
feat: Support rendering 'Oblique' fonts by @Tontyna in https://github.com/meyfa/php-svg/pull/236
Full Changelog: https://github.com/meyfa/php-svg/compare/v0.15.1...v0.16.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
fix: Remove implicit conversion from float to int by @yalagin in https://github.com/meyfa/php-svg/pull/234
Additional changes:
Full Changelog: https://github.com/meyfa/php-svg/compare/v0.15.0...v0.15.1
BREAKING: This release drops support for PHP 7.3. This allows us to use lots of new syntax offered since PHP 7.4. In particular, much better type defi
BREAKING: This release drops support for PHP 7.3. This allows us to use lots of new syntax offered since PHP 7.4. In particular, much better type definitions were added.
Thanks to everyone who contributed to make this possible!
::class instead of FQN-strings by @Niellles in https://github.com/meyfa/php-svg/pull/212Full Changelog: https://github.com/meyfa/php-svg/compare/v0.14.7...v0.15.0
fix: Run CI on PHP 8.3 and fix deprecation notices by @Niellles in https://github.com/meyfa/php-svg/pull/211
Full Changelog: https://github.com/meyfa/php-svg/compare/v0.14.6...v0.14.7
fix: Apply defaults for cx, cy, rx, ry in EllipseRenderer by @kuzmaka in https://github.com/meyfa/php-svg/pull/210
Full Changelog: https://github.com/meyfa/php-svg/compare/v0.14.5...v0.14.6
chore: Remove tests from final zip file by @shyim in https://github.com/meyfa/php-svg/pull/207
Full Changelog: https://github.com/meyfa/php-svg/compare/v0.14.4...v0.14.5
fix: Default x and y to 0 in ImageRenderer by @meyfa in https://github.com/meyfa/php-svg/pull/206
Full Changelog: https://github.com/meyfa/php-svg/compare/v0.14.3...v0.14.4
fix: Default x and y to 0 in RectRenderer by @cedo in https://github.com/meyfa/php-svg/pull/204
Full Changelog: https://github.com/meyfa/php-svg/compare/v0.14.2...v0.14.3
fix: Parse CSS with duplicate selectors by @norkunas in https://github.com/meyfa/php-svg/pull/201
Full Changelog: https://github.com/meyfa/php-svg/compare/v0.14.1...v0.14.2
fix: Set a default font-size by @meyfa in https://github.com/meyfa/php-svg/pull/198
Full Changelog: https://github.com/meyfa/php-svg/compare/v0.14.0...v0.14.1
This changes the way text rasterization works in PHP-SVG, including some breaking changes.
SVG class by @meyfa in https://github.com/meyfa/php-svg/pull/193Full Changelog: https://github.com/meyfa/php-svg/compare/v0.13.0...v0.14.0
| ⚠️ | BREAKING CHANGE: This version requires PHP 7.3 or later! |
| ⚠️ | BREAKING CHANGE: This version requires PHP 7.3 or later! |
|---|
PHP-SVG 0.12.0 has been the last release to support all PHP versions down to 5.3.3. From now on, PHP-SVG will require a minimum PHP version of 7.3. Read more about this choice here: https://github.com/meyfa/php-svg/issues/180
This should only affect you if you're using a PHP installation that's more than 4 years out of date. Keep in mind that everything below PHP 8 has already reached official end-of-life, so please consider upgrading. Running outdated software is a security risk.
?? by @meyfa in https://github.com/meyfa/php-svg/pull/186Full Changelog: https://github.com/meyfa/php-svg/compare/v0.12.0...v0.13.0
fix: Avoid deprecation warnings when passing null by @beatjaeckle in https://github.com/meyfa/php-svg/pull/169
null return typehints on SVG::getWidth/getHeight by @norkunas in https://github.com/meyfa/php-svg/pull/170Full Changelog: https://github.com/meyfa/php-svg/compare/v0.11.3...v0.12.0
chore(ci): Configure test workflow to also run on PHP 8 by @meyfa in https://github.com/meyfa/php-svg/pull/135
ImageRenderer for PHP 8.Full Changelog: https://github.com/meyfa/php-svg/compare/v0.11.2...v0.11.3
Fix missing import in SVGTextPath by @fankoti in https://github.com/meyfa/php-svg/pull/119
Full Changelog: https://github.com/meyfa/php-svg/compare/v0.11.1...v0.11.2
Fix ImageRenderer x/y copy-paste mistake by @meyfa in https://github.com/meyfa/php-svg/pull/116
Full Changelog: https://github.com/meyfa/php-svg/compare/v0.11.0...v0.11.1
Add classes for all remaining nodes in SVG spec (0bf3d0fd9160818ae4501dee2aa61b770f75b645, 907f6932580c1ac060962d6cf3d36a9bc56cf45f) by @meyfa
SVGPolygonalShape improvements (#105) by @meyfaFull Changelog: https://github.com/meyfa/php-svg/compare/v0.10.0...v0.11.0
Make all types inherit from SVGNodeContainer
See #77
Color::clamp (3cd4ecc35961c51f9661d955ee09fb2fccf3f0db)intval/floatval (920466c37c837b6360c761ea8c9537adbd9abaf9)Full Changelog: https://github.com/meyfa/php-svg/compare/v0.9.1...v0.10.0
Add class for svg tag 'a' (PR #61 by @pkertyxy)
SVGImage) and embedded fonts (via SVGFont)SVGClipPathSVGImage::fromString()SVGTitle class (34401edef1f724898f468f71b85505fbcc8351bb)ext-simplexml composer requirement (PR #57 by @moebrowne) (96a1daf01d4b2131864ad3a3382bcaa06019136f)<svg> (3b36e9f8909d157cc0ac83a7173c611359c21747)Full Changelog: https://github.com/meyfa/php-svg/compare/v0.9.0...v0.9.1
`\SVG\SVGImage` is renamed to `\SVG\SVG` (PR #55)
\SVG\SVGImage is renamed to \SVG\SVG (PR #55) (fc8e34ef2f1c7b04b6e56da9398097335867267d)\SVG\Nodes\Embedded\SVGImageElement is renamed to \SVG\Nodes\Embedded\SVGImage (PR #55) (1680eca33c0e107439969650904ab08ecfe83603)paint-order attribute (PR #54 by @za-ek) (a89d495f56af40bea7a18b8c6675987236aca218)Full Changelog: https://github.com/meyfa/php-svg/compare/v0.8.0...v0.9.0
Remove $root parameter of SVGDocumentFragment constructor (def5a72b5c51f82d8becc295de4e89b672a70f86) (breaks any code using nested ` ` tags)
$root parameter of SVGDocumentFragment constructor (def5a72b5c51f82d8becc295de4e89b672a70f86)
(breaks any code using nested <svg> tags)getElementById method to document class (936d22c2c3c104bf08f1926eab51379158e528e6)getElementsByTagName method to nodes (2283a216a32493450adf1b35462e985767b5bf54)<text>, <textPath> (PR #42 by @thomas-kl1) (c628ff3f8debcda239f154eb0c5c0177e51df34b)<title> tag (PR #47 by @micgro42) (9c738174a1001b82bf60db0142d840c24f67fba3)SVGNodeContainer::setChild method (#51) (48c3980eed48e0e135e13a9f654527c09648a542)setType method on SVGStyle (PR #44 by @peter279k) (212cae4bbead7e6740d78289c41cc07939ba7281)Full Changelog: https://github.com/meyfa/php-svg/compare/v0.7.0...v0.8.0
Besides internal rewrites, this release offers many fixes for nonconforming behavior. In addition, there is now support for rectangles with rounded co
Besides internal rewrites, this release offers many fixes for nonconforming behavior. In addition, there is now support for rectangles with rounded corners, the full range of CSS color notation and automatic entity escaping in attributes (" → ").
SVGDocumentFragment test failures (094238d6cb451f43ce6e0f4ce663f7b7dae7a78a)SVGReader (dadcabdaafc9086b02941acc2131ab7bca8b5677)viewBox by SVGReader when explicit attributes are missing (dadcabdaafc9086b02941acc2131ab7bca8b5677)SVG::convertUnit accepting missing value (c9ce6ed36710ad34584877f10657efd262856f3c)SVGNode::setStyle and SVGNode::setAttribute unset properties when given null (0747a98b27683bf0e251072f0e9be6460893da04)SVGNode::setAttributeOptional (#38) (0747a98b27683bf0e251072f0e9be6460893da04)SVGNode (c8c4f6ba7dc4a10bb2eabb3a443daa45aa534c33)Full Changelog: https://github.com/meyfa/php-svg/compare/v0.6.1...v0.7.0
Reader: Include namespaced attributes (fixes #31)
<defs> tag (fixes #32) (5dc6b2c, 2c27ab3)BREAKING: Update package name and author data
meyfa/php-svguse statements to start with SVG\, e.g. use SVG\SVGImageSVGRect::setHeight() setting the width (16d790c)<image> tag (PR #26) (e2148fb)
<image> tag<style> tag, improved viewbox, nested docs (PR #27) (67ff696)Trim polygon points attribute when parsing, fixes index error (PR #23)
Add unit support: pc, cm, mm, in (closes #21)
viewBox support (closes #20) (PR #22)All path commands are now supported!
All path commands are now supported!
Add support for rgb/rgba colors with percentages (81136fa), as well as hsl and hsla color support (aa48436) (see #11)
display: none (fd2c893) and visibility (dbcb999) support to node rasterization (see #15)POTENTIALLY BREAKING: Make SVGNodeContainer methods chainable (fixes #9)
d attribute to SVGPath (cafd2be)SVGNode::attributes (7f33fb1)setStyle() for default styles (fixes #14) (5a4d720)Fix relative CurveToCubic wrong in SVGPathApproximator due to typo
Fix "unexpected T_OBJECT_OPERATOR" in SVGRasterizer for certain PHP versions
SVGNode subclasses expose their tag name through SVGNode::getName()
SVGNode::getName() (19a0828)SVGNode::constructFromAttributes() (302f0e7)SVGNode::toXMLString(), and therefore also ::addAttributesToXMLString() and ::addStylesToXMLString(), are removedSVGNode::getSerializableAttributes() and SVGNode::getSerializableStyles() are added.SVGImage::toXMLString()."SVGRasterizer: Eliminating the clunky SVGRenderingHelper"
d attribute (7a007b2)SVGNode::rasterize() instead of ::draw() (1dd4fb9)d attribute included in parsed stylesSVGNode::addStylesToXMLString(), reducing amount of duplicated code (0d73475)COLOR_ RegEx strings in SVG.php constants (88671cc)SVGPolygonalShape, reducing amount of duplicated code (ca8c0a2)SVGNode::draw() (dfe51c4, 2f817a9)Composer support (2a8c1bc, e1bbf3c)
<path>, supporting (both relative and absolute) MoveTo, LineTo, CurveTo, Close (c79a699, 32b57fd, bdb17e7, dda7a4d, d37f06a)One column per quarter.