PHPackages                             codeat3/blade-phosphor-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. [Templating &amp; Views](/categories/templating)
4. /
5. codeat3/blade-phosphor-icons

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

codeat3/blade-phosphor-icons
============================

A package to easily make use of "Phosphor Icons" in your Laravel Blade views.

2.4.0(1mo ago)43798.5k—6.2%8[1 issues](https://github.com/codeat3/blade-phosphor-icons/issues)18MITPHPPHP ^7.4|^8.0CI failing

Since May 7Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/codeat3/blade-phosphor-icons)[ Packagist](https://packagist.org/packages/codeat3/blade-phosphor-icons)[ Docs](https://github.com/codeat3/blade-phosphor-icons)[ GitHub Sponsors](https://github.com/swapnilsarwe)[ RSS](/packages/codeat3-blade-phosphor-icons/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (12)Versions (17)Used By (18)

 [![](./socialcard-blade-phosphor-icons.png "Social Card Blade Phosphor Icons")](./socialcard-blade-phosphor-icons.png)

Blade Phosphor Icons v2
=======================

[](#blade-phosphor-icons-v2)

[ ![Tests](https://github.com/codeat3/blade-phosphor-icons/workflows/Tests/badge.svg)](https://github.com/codeat3/blade-phosphor-icons/actions?query=workflow%3ATests)[ ![Latest Stable Version](https://camo.githubusercontent.com/ae4bd2da1012768d74f2bda39546f0ea5be0587a86f76e78f87fc1ff3d63959e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f64656174332f626c6164652d70686f7370686f722d69636f6e73)](https://packagist.org/packages/codeat3/blade-phosphor-icons)[ ![Total Downloads](https://camo.githubusercontent.com/79ae9961dcf43079eff55f69e1a28133e83d5502f51f4275fb423b3b74fe42e7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f64656174332f626c6164652d70686f7370686f722d69636f6e73)](https://packagist.org/packages/codeat3/blade-phosphor-icons)A package to easily make use of [Phosphor Icons](https://github.com/phosphor-icons/phosphor-icons) in your Laravel Blade views.

For a full list of available icons see [the SVG directory](resources/svg) or preview them at [phosphoricons.com](https://phosphoricons.com/).

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

[](#requirements)

- PHP 7.4 or higher
- Laravel 8.0 or higher

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

[](#installation)

### For Phosphor Icons v1

[](#for-phosphor-icons-v1)

```
composer require codeat3/blade-phosphor-icons:^1.0
```

### For Phosphor Icons v2

[](#for-phosphor-icons-v2)

```
composer require codeat3/blade-phosphor-icons:^2.0
```

Updating
--------

[](#updating)

Please refer to [`the upgrade guide`](UPGRADE.md) when updating the library.

Blade Icons
-----------

[](#blade-icons)

Blade Phosphor Icons uses Blade Icons under the hood. Please refer to [the Blade Icons readme](https://github.com/blade-ui-kit/blade-icons) for additional functionality. We also recommend to [enable icon caching](https://github.com/blade-ui-kit/blade-icons#caching) with this library.

Caching Icons
-------------

[](#caching-icons)

It's a good idea to add the `icons:cache` command as part of your deployment pipeline and always cache icons in production. This will significantly improve performance of the application. Refer [Caching](https://github.com/driesvints/blade-icons?tab=readme-ov-file#caching) section for details.

Configuration
-------------

[](#configuration)

Blade Phosphor Icons also offers the ability to use features from Blade Icons like default classes, default attributes, etc. If you'd like to configure these, publish the `blade-phosphor-icons.php` config file:

```
php artisan vendor:publish --tag=blade-phosphor-icons-config
```

Usage
-----

[](#usage)

Icons can be used as 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:

```

```

Or use the `@svg` directive:

```
@svg('phosphor-alarm', 'w-6 h-6', ['style' => 'color: #555'])
```

The 6 weights can be referenced like this:

```

```

### 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-phosphor-icons --force
```

Then use them in your views like:

```

```

### Blade Icons

[](#blade-icons-1)

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

Changelog
---------

[](#changelog)

Check out the [CHANGELOG](CHANGELOG.md) in this repository for all the recent changes.

Maintainers
-----------

[](#maintainers)

Blade Phosphor Icons is developed and maintained by [Swapnil Sarwe](https://swapnilsarwe.com).

License
-------

[](#license)

Blade Phosphor Icons is open-sourced software licensed under [the MIT license](LICENSE.md).

###  Health Score

61

—

FairBetter than 99% of packages

Maintenance88

Actively maintained with recent releases

Popularity52

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 78.9% 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 ~137 days

Recently: every ~247 days

Total

14

Last Release

59d ago

Major Versions

1.x-dev → 2.0.02023-07-04

PHP version history (2 changes)1.0.0PHP ^7.3|^8.0

1.1.1PHP ^7.4|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/166912?v=4)[Swapnil Sarwe](/maintainers/swapnilsarwe)[@swapnilsarwe](https://github.com/swapnilsarwe)

---

Top Contributors

[![swapnilsarwe](https://avatars.githubusercontent.com/u/166912?v=4)](https://github.com/swapnilsarwe "swapnilsarwe (56 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (9 commits)")[![deligoez](https://avatars.githubusercontent.com/u/3030815?v=4)](https://github.com/deligoez "deligoez (3 commits)")[![jxxe](https://avatars.githubusercontent.com/u/64276359?v=4)](https://github.com/jxxe "jxxe (1 commits)")[![nuernbergerA](https://avatars.githubusercontent.com/u/13331388?v=4)](https://github.com/nuernbergerA "nuernbergerA (1 commits)")[![wit3](https://avatars.githubusercontent.com/u/5450259?v=4)](https://github.com/wit3 "wit3 (1 commits)")

---

Tags

laravelbladephosphor-icons

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codeat3-blade-phosphor-icons/health.svg)

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

###  Alternatives

[stijnvanouplines/blade-country-flags

A package to easily make use of country flags in your Laravel Blade views.

26307.2k6](/packages/stijnvanouplines-blade-country-flags)[technikermathe/blade-lucide-icons

A package to easily make use of Lucide icons in your Laravel Blade views.

18299.2k7](/packages/technikermathe-blade-lucide-icons)[saade/blade-iconsax

A package to easily make use of Iconsax in your Laravel Blade views.

21138.5k](/packages/saade-blade-iconsax)[mckenziearts/blade-untitledui-icons

A package to easily make use of UntitledUI icons in your Laravel Blade views.

16104.9k5](/packages/mckenziearts-blade-untitledui-icons)[afatmustafa/blade-hugeicons

A package to easily make use of Hugeicons(Free version) in your Laravel Blade views.

13129.0k3](/packages/afatmustafa-blade-hugeicons)

PHPackages © 2026

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