PHPackages                             srwiez/php-svg-ps-converter - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. srwiez/php-svg-ps-converter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

srwiez/php-svg-ps-converter
===========================

SVG (Portable and Secure) converter for BIMI compliance

v1.3.0(5mo ago)4484↓100%11MITPHPPHP ^8.2CI passing

Since Oct 28Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/SRWieZ/php-svg-ps-converter)[ Packagist](https://packagist.org/packages/srwiez/php-svg-ps-converter)[ GitHub Sponsors](https://github.com/SRWieZ)[ RSS](/packages/srwiez-php-svg-ps-converter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (9)Used By (1)

SVGTinyPS
=========

[](#svgtinyps)

[![Latest Stable Version](https://camo.githubusercontent.com/590272fbfc56f44324bbb6d69cb82529eda701aeac1c5265a36805b5604a7817/687474703a2f2f706f7365722e707567782e6f72672f53525769655a2f7068702d7376672d70732d636f6e7665727465722f76)](https://packagist.org/packages/SRWieZ/php-svg-ps-converter) [![Total Downloads](https://camo.githubusercontent.com/13340ed4a4bb435f22f91c056cac97fa73b5b49feb0216692ab4493f84d8aab3/687474703a2f2f706f7365722e707567782e6f72672f53525769655a2f7068702d7376672d70732d636f6e7665727465722f646f776e6c6f616473)](https://packagist.org/packages/SRWieZ/php-svg-ps-converter) [![Latest Unstable Version](https://camo.githubusercontent.com/79e38e936c5304fe6cb34f6d86e9e95e6bdd5dc94f0e7cc37b206e08c7a49151/687474703a2f2f706f7365722e707567782e6f72672f53525769655a2f7068702d7376672d70732d636f6e7665727465722f762f756e737461626c65)](https://packagist.org/packages/SRWieZ/php-svg-ps-converter) [![License](https://camo.githubusercontent.com/2f6f7c019d3e7c1eebfa129968460c06e8254e7405f61924e5d00d86df4770a8/687474703a2f2f706f7365722e707567782e6f72672f53525769655a2f7068702d7376672d70732d636f6e7665727465722f6c6963656e7365)](https://packagist.org/packages/SRWieZ/php-svg-ps-converter) [![PHP Version Require](https://camo.githubusercontent.com/6e244dc5b466ccdaf234ee73e3f2747f843fdbd8b923edffa30a9f13d33af361/687474703a2f2f706f7365722e707567782e6f72672f53525769655a2f7068702d7376672d70732d636f6e7665727465722f726571756972652f706870)](https://packagist.org/packages/SRWieZ/php-svg-ps-converter)[![GitHub Workflow Status (with event)](https://camo.githubusercontent.com/a4abf9a841f90c603ed0471a11c26748eace05cc09d47365c56df516ad4751e2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f53525769655a2f7068702d7376672d70732d636f6e7665727465722f746573742e796d6c3f6c6162656c3d5465737473)](https://camo.githubusercontent.com/a4abf9a841f90c603ed0471a11c26748eace05cc09d47365c56df516ad4751e2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f53525769655a2f7068702d7376672d70732d636f6e7665727465722f746573742e796d6c3f6c6162656c3d5465737473)

SVG (Portable and Secure) converter for BIMI compliance.

[Read more from bimi group](https://bimigroup.org/creating-bimi-svg-logo-files/)and [the RFC](https://datatracker.ietf.org/doc/id/draft-svg-tiny-ps-abrotman-00.txt)

🧪 If you just want to convert your SVG in a nice ui, you can use the [online version of the converter!](https://checkbimi.com/convertsvg)

You can also checkout the [command line version](https://github.com/SRWieZ/svgps-commandline) of this project.

🚀 Installation
--------------

[](#-installation)

```
composer require srwiez/php-svg-ps-converter
```

📚 Usage
-------

[](#-usage)

Example of identifying issues and converting the SVG:

```
$svg_converter = new SVGTinyPS(getSVGContent($svg_content));
$issues = $svg_converter->identifyIssues();
$svg_fixed= $svg_converter->convert();
```

Some issues cannot be fixed automatically, you can get them by rerunning identifyIssues()

Namely, the issues that cannot be fixed are:

- The SVG contains an image
- The SVG is not square
- The SVG size &gt; 32kb

```
$svg_converter = new SVGTinyPS(getSVGContent($svg_fixed));
$issues_cannot_be_fixed = $svg_converter->identifyIssues();
```

👥 Credits
---------

[](#-credits)

SVGTinyPS was created by Eser DENIZ.

Inspired by the official scripts of [authindicators/svg-ps-converters](https://github.com/authindicators/svg-ps-converters)

Thanks to [gilbarbara/logos](https://github.com/gilbarbara/logos) for the logos used in the tests.

📝 License
---------

[](#-license)

SVGTinyPS PHP is licensed under the MIT License. See LICENSE for more information.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance72

Regular maintenance activity

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~153 days

Recently: every ~192 days

Total

6

Last Release

160d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/735894a4f6e39aa85e3d136abc9cf0be92da593d88731382384185293cbfe965?d=identicon)[SRWieZ](/maintainers/SRWieZ)

---

Top Contributors

[![SRWieZ](https://avatars.githubusercontent.com/u/1408020?v=4)](https://github.com/SRWieZ "SRWieZ (17 commits)")

---

Tags

bimiphpsvg

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/srwiez-php-svg-ps-converter/health.svg)

```
[![Health](https://phpackages.com/badges/srwiez-php-svg-ps-converter/health.svg)](https://phpackages.com/packages/srwiez-php-svg-ps-converter)
```

###  Alternatives

[ilya/belt

A handful of tools for PHP developers.

71020.8k1](/packages/ilya-belt)[nfourtythree/entriessubset

Craft field type plugin that extends the core Entries field type to give extra settings with ability to restrict by entry type

1683.0k](/packages/nfourtythree-entriessubset)[ryanpotter/silverstripe-color-field

Silverstripe Color Field

1059.3k11](/packages/ryanpotter-silverstripe-color-field)[lamalama/laravel-wishlist

Make your models wishlistable

238.1k](/packages/lamalama-laravel-wishlist)[kibatic/datagrid-bundle

Datagrid for Symfony

1418.3k](/packages/kibatic-datagrid-bundle)[prettybx/support

Pretty Bitrix

195.5k1](/packages/prettybx-support)

PHPackages © 2026

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