PHPackages                             inteve/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. inteve/icons

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

inteve/icons
============

Icons loader for web-apps

v1.3.0(12mo ago)181BSD-3-ClausePHPPHP 8.0 - 8.2CI passing

Since Dec 8Pushed 12mo ago1 watchersCompare

[ Source](https://github.com/inteve/icons)[ Packagist](https://packagist.org/packages/inteve/icons)[ Fund](https://www.janpecha.cz/donate/)[ RSS](/packages/inteve-icons/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (5)Used By (0)

Inteve\\Icons
=============

[](#inteveicons)

[![Build Status](https://github.com/inteve/icons/workflows/Build/badge.svg)](https://github.com/inteve/icons/actions)[![Downloads this Month](https://camo.githubusercontent.com/776ef966c4edc5f36ee6e117173b363e2b6f0ca8aa5cbdb93ec131fd45987d0e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f696e746576652f69636f6e732e737667)](https://packagist.org/packages/inteve/icons)[![Latest Stable Version](https://camo.githubusercontent.com/9530567156faedf87332dbacb6be9dc56673422ea2302a7d4279ecd3706d4d20/68747470733a2f2f706f7365722e707567782e6f72672f696e746576652f69636f6e732f762f737461626c65)](https://github.com/inteve/icons/releases)[![License](https://camo.githubusercontent.com/fa7d5fcf2c84b580327af52da95dd751703af65f079dc3c5a0081beac0789718/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4e65772532304253442d626c75652e737667)](https://github.com/inteve/icons/blob/master/license.md)

Icons loader for web-apps.

[![Donate](https://camo.githubusercontent.com/101b981194f1dafbf9c42e19c3034fe2d724e75be972cef0f4477074997834db/68747470733a2f2f6275796d65636f666665652e696e746d2e6f72672f696d672f646f6e6174652d62616e6e65722e76312e737667)](https://www.janpecha.cz/donate/)

Installation
------------

[](#installation)

[Download a latest package](https://github.com/inteve/icons/releases) or use [Composer](http://getcomposer.org/):

```
composer require inteve/icons

```

Inteve\\Icons requires PHP 8.0 or later.

Usage
-----

[](#usage)

This library is implementation of [PHIG's](https://github.com/phig-org/phig) `HtmlIcons` interface.

### InlineSvgIcons

[](#inlinesvgicons)

```
$icons = new \Inteve\Icons\InlineSvgIcons($iconsDirectory);
echo $icons->get('my-icon'); // finds file "$iconsDirectory/my-icon.svg", prints ...
```

### ImgIcons

[](#imgicons)

```
$icons = new \Inteve\Icons\ImgIcons($publicUrlPath, $fileExtension, $htmlClass = 'icon');
echo $icons->get('my-icon'); // prints
echo $icons->get('my-icon@small'); // prints
```

### InlineStyleIcons

[](#inlinestyleicons)

```
$icons = new \Inteve\Icons\InlineStyleIcons($publicUrlPath, $fileExtension, $htmlClass = 'icon', $tagName = 'i');
echo $icons->get('my-icon'); // prints
echo $icons->get('my-icon@small'); // prints
```

### WrappedIcons

[](#wrappedicons)

```
$svgIcons = new \Inteve\Icons\InlineSvgIcons($iconsDirectory);
$icons = new \Inteve\Icons\WrappedIcons($svgIcons, $className = 'icon', $tagName = 'i');
echo $icons->get('my-icon'); // prints ...
echo $icons->get('my-icon@small'); // prints ...
```

### PrefixedIcons

[](#prefixedicons)

```
$icons = new \Inteve\Icons\PrefixedIcons(
	icons: [
		'legacy' => new ImgIcons($publicUrlPath, $fileExtension),
		'bootstrap' => new \Inteve\Icons\InlineSvgIcons($bootstrapIconsDirectory),
	],
	defaultIcons: new \Inteve\Icons\InlineSvgIcons($iconsDirectory)
);
echo $icons->get('my-icon'); // prints ...
echo $icons->get('legacy/my-icon'); // prints
echo $icons->get('bootstrap/my-icon'); // prints ...
```

---

License: [New BSD License](license.md)
Author: Jan Pecha,

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance50

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Total

4

Last Release

364d ago

PHP version history (2 changes)v1.0.0PHP 7.4 - 8.2

v1.2.0PHP 8.0 - 8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c980b1511b4a0350442dc23d89c99d4d9a2411b7e765d52c133ccacf616968b?d=identicon)[janpecha](/maintainers/janpecha)

---

Top Contributors

[![janpecha](https://avatars.githubusercontent.com/u/637719?v=4)](https://github.com/janpecha "janpecha (14 commits)")

---

Tags

assetsiconsicons-providerphp

### Embed Badge

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

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

###  Alternatives

[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.3k72.7M762](/packages/nette-php-generator)[nette/component-model

⚛ Nette Component Model

28817.0M106](/packages/nette-component-model)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5275.9M121](/packages/symplify-monorepo-builder)[nette/code-checker

✅ Nette CodeChecker: A simple tool to check source code against a set of Nette coding standards.

911.7M6](/packages/nette-code-checker)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

136406.3k14](/packages/rector-rector-src)[shipmonk/input-mapper

Performant array-to-object mapper supporting generics, array shapes, optional fields and much more!

3030.9k](/packages/shipmonk-input-mapper)

PHPackages © 2026

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