PHPackages                             kravcik/nette-macro-fontawesome - 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. kravcik/nette-macro-fontawesome

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

kravcik/nette-macro-fontawesome
===============================

Simple macro for Nette framework, which allow short entry of font-awesome icons.

v4.0.4(4y ago)110.7k—7.1%2[1 PRs](https://github.com/kravcik/nette-macro-fontawesome/pulls)MITPHPPHP ^8.0

Since Feb 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/kravcik/nette-macro-fontawesome)[ Packagist](https://packagist.org/packages/kravcik/nette-macro-fontawesome)[ Docs](https://github.com/kravcik/nette-macro-fontawesome)[ RSS](/packages/kravcik-nette-macro-fontawesome/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (7)Versions (20)Used By (0)

This repo is discontinued - for Latte3 and PHP8.1 you should look here:

Simple macro for generating Font Awesome icons. First parameter is required. Parameters can be set in order or randomly with string keys (macro detects if it's getting an associative array).

Version 2.0.0
-------------

[](#version-200)

It's compatible with FontAwesome 5, but default style is set to `light`. Best option would be to create multiple macros or a static variable to set default style. Send me a PR or create an issue if you need this.

Thanks to [@peldax](https://github.com/peldax) it's also possible to change the html element. Default is span.

Register to config.neon
-----------------------

[](#register-to-configneon)

```
latte:
    macros:
        - Kravcik\Macros\FontAwesomeMacro::install

```

Parameters
----------

[](#parameters)

1. `icon` - icon name without `fa-`
2. `color` - color (blue, red-dark, etc.)
3. `size` - number (generates `fa-{size}x`) or sm, lg, etc.
4. `fw` - if TRUE, disable `fa-fw`
5. `style` - `fas` / `far` / `fal` / `fab`

Examples
--------

[](#examples)

`{icon star, 'el' => 'i'}` -&gt; ``

`{icon star}` -&gt; ``

`{icon star, red}` -&gt; ``

`{icon star, NULL, lg}` -&gt; ``

`{icon star, yellow, 2}` -&gt; ``

`{icon star, blue, 2, TRUE, far}` -&gt; ``

`{icon star, size => 2, fw => TRUE, color => 'green-light', style => 'fas'}` -&gt; ``

Versions
========

[](#versions)

PackagePHPNetteFont AwesomeBootstrapv4&gt;=8.0&gt;=3.054v3&gt;=7.3&gt;=3.054v2&gt;=7.1&gt;=2.453v1&gt;=5.6&gt;=2.443

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 56.7% 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 ~114 days

Recently: every ~66 days

Total

18

Last Release

1478d ago

Major Versions

0.9.4 → 1.0.02017-02-21

v1.1.0 → v2.0.02018-10-10

v2.0.2 → v3.0.02020-01-09

v3.0.2 → 4.0.02021-09-27

PHP version history (3 changes)0.9PHP &gt;=5.6.0

v3.0.0PHP &gt;=7.1

4.0.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10499130?v=4)[Pavel Kravčík](/maintainers/kravcik)[@kravcik](https://github.com/kravcik)

---

Top Contributors

[![kravcik](https://avatars.githubusercontent.com/u/10499130?v=4)](https://github.com/kravcik "kravcik (17 commits)")[![spulakk](https://avatars.githubusercontent.com/u/34043062?v=4)](https://github.com/spulakk "spulakk (8 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![vodictomas](https://avatars.githubusercontent.com/u/11019496?v=4)](https://github.com/vodictomas "vodictomas (2 commits)")[![peldax](https://avatars.githubusercontent.com/u/10790033?v=4)](https://github.com/peldax "peldax (1 commits)")

---

Tags

font-awesomelattemacronettenettefont-awesomemacro

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kravcik-nette-macro-fontawesome/health.svg)

```
[![Health](https://phpackages.com/badges/kravcik-nette-macro-fontawesome/health.svg)](https://phpackages.com/packages/kravcik-nette-macro-fontawesome)
```

###  Alternatives

[nette/php-generator

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

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

⚛ Nette Component Model

28817.0M106](/packages/nette-component-model)[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)[nextras/datagrid

Datagrid component for Nette Framework.

71271.6k4](/packages/nextras-datagrid)[uestla/twigrid

Experimental DataGrid for Nette Framework

1712.4k2](/packages/uestla-twigrid)

PHPackages © 2026

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