PHPackages                             toneflix-code/blade-fontawesome6-free - 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. [Templating &amp; Views](/categories/templating)
4. /
5. toneflix-code/blade-fontawesome6-free

ActiveLibrary[Templating &amp; Views](/categories/templating)

toneflix-code/blade-fontawesome6-free
=====================================

A package to easily make use of Font Awesome 6 in your Laravel Blade views.

042PHP

Since Jan 22Pushed 4y agoCompare

[ Source](https://github.com/toneflix/blade-fontawesome6-free)[ Packagist](https://packagist.org/packages/toneflix-code/blade-fontawesome6-free)[ RSS](/packages/toneflix-code-blade-fontawesome6-free/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [![](https://camo.githubusercontent.com/af2a60f783f2e5f16f97b87b5a96297ae66fbd79fe19a77297af9601350ec010/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f426c616465253230466f6e74253230417765736f6d652532303625323049636f6e2e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d746f6e65666c69782d636f6465253246626c6164652d666f6e74617765736f6d65362d66726565267061747465726e3d746f706f677261706879267374796c653d7374796c655f32266465736372697074696f6e3d412b7061636b6167652b746f2b656173696c792b6d616b652b7573652b6f662b466f6e742b417765736f6d652b362b49636f6e732b696e2b796f75722b4c61726176656c2b426c6164652b76696577732e266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667 "Social Card Blade Font Awesome 6 Icon")](https://camo.githubusercontent.com/af2a60f783f2e5f16f97b87b5a96297ae66fbd79fe19a77297af9601350ec010/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f426c616465253230466f6e74253230417765736f6d652532303625323049636f6e2e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d746f6e65666c69782d636f6465253246626c6164652d666f6e74617765736f6d65362d66726565267061747465726e3d746f706f677261706879267374796c653d7374796c655f32266465736372697074696f6e3d412b7061636b6167652b746f2b656173696c792b6d616b652b7573652b6f662b466f6e742b417765736f6d652b362b49636f6e732b696e2b796f75722b4c61726176656c2b426c6164652b76696577732e266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)

Blade Font Awesome 6 Icon
=========================

[](#blade-font-awesome-6-icon)

A package to easily make use of [Font Awesome 6](https://fontawesome.com/) in your Laravel Blade views.

[![Latest Version on Packagist](https://camo.githubusercontent.com/d1946682554c20a932f0e919fa62c8dee15d8cd8a4770240fbe81085c238a614/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76312e30302d626c75652e7376673f7374796c653d666c61742d737175617265266c6f676f3d7061636b6167697374)](https://packagist.org/packages/toneflix-code/blade-fontawesome6-free)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/47c9af4dc4887db01cc67a4da6aa9236d487f240c29ebf3dd02ebb700cd04894/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f746f6e65666c69782f626c6164652d666f6e74617765736f6d65362d667265652f54657374732e7376673f7374796c653d666c61742d737175617265)](https://github.com/toneflix/blade-fontawesome6-free/actions)[![Style CI](https://camo.githubusercontent.com/fa839e48f16499a52b8fe5a590eae18eef944d90f1ed8a60d688e569447b81ed/68747470733a2f2f7374796c6563692e696f2f7265706f732f3434323632313630332f736869656c64)](https://styleci.io/repos/442621603)[![Total Downloads](https://camo.githubusercontent.com/cc91c50dd7c98309eaf709491f49dd005aeac66f02dc6d98f253605372bfd305/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f6e65666c69782d636f64652f626c6164652d666f6e74617765736f6d65362d667265652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/toneflix-code/blade-fontawesome6-free)

For a full list of available icons see [the `resources/svg` directory](./resources/svg) or search

Requirements
------------

[](#requirements)

- PHP 7.4 or higher
- Laravel 8.0 or higher

Install
-------

[](#install)

```
$ composer require toneflix-code/blade-fontawesome6-free
```

Usage
-----

[](#usage)

Icons can be used a self-closing Blade components which will be compiled to SVG icons:

```

```

You can also pass classes to your icon components:

```

```

And even use inline styles:

```

```

Available Set
-------------

[](#available-set)

The library comes pre-bundled with all of Fontawesome 6 free icons, which you are free to extend with pro icons if you have a license

Available set include:

```
all      []
regular  [r]
solid    [s]
brands   [b]

```

If you chose to use the `all` set you would have to suffix your directive with the appropriate set you require:

```

```

If you are not using a specific set then you would have to add the first letter of the set to the prefix:

```

```

### Raw SVG Icons

[](#raw-svg-icons)

If you want to use the raw SVG icons as assets, you can publish them using:

```
php artisan vendor:publish --tag=blade-fontawesome6-free --force
```

Then use them in your views like:

```

```

### HTML ``

[](#html-selectselect)

You can also make a html `` prefilled with your preferred icon set for convenience.

```

```

The `fa6-select-icon` requires that you publish the raw SVG icons as assets, refer to the [**Raw SVG Icons**](#raw-svg-icons) section for details

The `fa6-select-icon` accepts all HTML select parameters and three optional parameters:

```
    string "selected":
    string "set":
    string "path":

```

If you would like to customize how the select field is rendered, you can publish the view:

```
php artisan vendor:publish --tag=blade-fontawesome6-views --force
```

You would find the custom view file in: `views/vendor/blade-fontawesome6`

### Helper

[](#helper)

The `loadSvg()` helper method has been provided for convenience to generate \[an array of all icons available in your selected set | a raw icon like using the blade directives would do | a url to your icon incase you need to append it directly into a html tag\].

The `loadSvg()` helper requires that you publish the raw SVG icons as assets, refer to the [**Raw SVG Icons**](#raw-svg-icons) section for details

The `loadSvg()` helper accepts four optional parameters:

```
loadSvg(
    string $icon_name = null  // The name of an icon that is currently available in the active set
    string $ICONS_PATH = null // You are also allowed to load icons not presently part of the library, in this case use an absolute path to the required icons directory
    boolean $link = false     // A boolen value indicating whether you want a the raw icon returned or an absolute link to the icon
    boolean $set = 'all'      // The name of the required icon set
}
```

### Blade Icons

[](#blade-icons)

Blade Font Awesome 6 Icon uses Blade Icons under the hood. Please refer to [the Blade Icons readme](https://github.com/blade-ui-kit/blade-icons) for additional functionality.

Testing
-------

[](#testing)

```
$ composer test
```

Credits
-------

[](#credits)

- [3m1n3nc3.](https://github.com/3m1n3nc3)
- [All Contributors](../../contributors)

License
-------

[](#license)

This project is licensed under the MIT License (MIT) – see the [LICENSE](LICENSE) file for details.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4638f9de973d94753ebff641af3009e1049064f9a6bd76fe87e58d0d8ddd7ca7?d=identicon)[3m1n3nc3](/maintainers/3m1n3nc3)

---

Top Contributors

[![3m1n3nc3](https://avatars.githubusercontent.com/u/52163001?v=4)](https://github.com/3m1n3nc3 "3m1n3nc3 (51 commits)")

### Embed Badge

![Health badge](/badges/toneflix-code-blade-fontawesome6-free/health.svg)

```
[![Health](https://phpackages.com/badges/toneflix-code-blade-fontawesome6-free/health.svg)](https://phpackages.com/packages/toneflix-code-blade-fontawesome6-free)
```

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)

PHPackages © 2026

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