PHPackages                             hyvor/php-svg-icons - 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. hyvor/php-svg-icons

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

hyvor/php-svg-icons
===================

PHP SVG Icons Library

1.1.0(1y ago)43.2k↓63.5%MITPHPPHP ^8.1

Since May 28Pushed 1y agoCompare

[ Source](https://github.com/hyvor/php-svg-icons)[ Packagist](https://packagist.org/packages/hyvor/php-svg-icons)[ RSS](/packages/hyvor-php-svg-icons/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

How to use
----------

[](#how-to-use)

Installation:

```
composer require hyvor/php-svg-icons
```

Format:

```
$icon = new Icon($library, $iconName);
$svg = $icon->getSvg($width, $height);
```

Example:

```
$icon = new Icon('bootstrap', '123');

$icon->getSvg(); // 16x16
$icon->getSvg(20); // 20x20
$icon->getSvg(20, 25); // 20x25
```

Contributing
------------

[](#contributing)

### How to add a new icon library

[](#how-to-add-a-new-icon-library)

- Create `icons/{library_name}` folder with a `.gitkeep` file in it
- Add configuration to `src/libs.php`
- Create a fetcher in `src/Fetcher/{LibraryName}.php`. See other fetchers to see how it works. Usually, you have to download the SVG icons from somewhere and add them to the icons folders.

Use `php run.php` to run all fetchers and update icons.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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 ~864 days

Total

2

Last Release

586d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/53796347?v=4)[HYVOR](/maintainers/HYVOR)[@hyvor](https://github.com/hyvor)

---

Top Contributors

[![supun-io](https://avatars.githubusercontent.com/u/44988673?v=4)](https://github.com/supun-io "supun-io (6 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/hyvor-php-svg-icons/health.svg)

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

PHPackages © 2026

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