PHPackages                             tonegabes/filament-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tonegabes/filament-phosphor-icons

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

tonegabes/filament-phosphor-icons
=================================

Phosphor Icons Pack ready for Filament 4

1.3.1(2mo ago)526.3k↑17.4%12MITPHPPHP ^8.1CI passing

Since Aug 21Pushed 2mo agoCompare

[ Source](https://github.com/tonegabes/filament-phosphor-icons)[ Packagist](https://packagist.org/packages/tonegabes/filament-phosphor-icons)[ RSS](/packages/tonegabes-filament-phosphor-icons/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (4)Dependencies (6)Versions (11)Used By (2)

 [![Banner](images/thumbnail.png)](images/thumbnail.png)

Filament Phosphor Icons
=======================

[](#filament-phosphor-icons)

A Phosphor icon set ready to be used as Enums in Filament 4 and 5 applications.

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

[](#installation)

You can install the package via composer:

```
composer require tonegabes/filament-phosphor-icons
```

Usage
-----

[](#usage)

All icons are available through an enum providing convenient usage throughout your Filament app. For more information, check the [Filament 4 docs](https://filamentphp.com/docs/4.x/styling/icons) or the [Filament 5 docs](https://filamentphp.com/docs/5.x/styling/icons).

For all available icons check the [Phosphor Icons](https://phosphoricons.com/).

```
use Filament\Actions\Action;
use Filament\Forms\Components\Toggle;
use ToneGabes\Filament\Icons\Enums\Phosphor;

Action::make('star')
  ->icon(Phosphor::StarBold);

Toggle::make('is_starred')
  ->onIcon(Phosphor::Star)
```

Weights
-------

[](#weights)

This package includes a enum with weights you can use:

```
enum Weight: string
{
    case Thin = 'thin';
    case Light = 'light';
    case Fill = 'fill';
    case Duotone = 'duotone';
    case Bold = 'bold';
    case Regular = 'regular';
}
```

Use it to force a certain style:

```
use Filament\Forms\Components\Toggle;
use ToneGabes\Filament\Icons\Enums\Phosphor;
use ToneGabes\Filament\Icons\Enums\Weight;

// Simple
Toggle::make('is_starred')
    ->onIcon(Phosphor::StarFill)
    ->offIcon(Phosphor::Star)
;

// Forcing with enum
Toggle::make('is_starred')
    ->onIcon(Phosphor::Star->forceWeight(Weight::Fill))
    ->offIcon(Phosphor::Star->forceWeight(Weight::Regular));

// You can use 'forceWeight' to set weight based on a Weight enum or string value
Action::make('star')->icon(Phosphor::StarBold->forceWeight($var));
```

Helpers
-------

[](#helpers)

For convenience, this package also comes with helper methods to improve DX and make more dynamic code:

```
// Overrides the default bold case to another at runtime
  ->icon(Phosphor::StarBold->thin());
  ->icon(Phosphor::StarBold->light());
  ->icon(Phosphor::StarBold->regular());
  ->icon(Phosphor::StarBold->fill());
  ->icon(Phosphor::StarBold->bold());
  ->icon(Phosphor::StarBold->duotone());
```

You can also use with conditions:

```
// Approach 1
IconColumn::make('is_favorite')
    ->icon(fn (string $state) => match ($state) {
        true => Phosphor::HeartFill,
        false => Phosphor::Heart,
    })

// Approach 2
IconColumn::make('is_favorite')
    ->icon(fn (string $state) => Phosphor::Heart->fill($state))
```

Usage in Blade
--------------

[](#usage-in-blade)

If you would like to use an icon in a Blade component, you can:

```
@php
    use ToneGabes\Filament\Icons\Enums\Phosphor;
@endphp

// Use it as attribute

    Star

// Use it as svg directive
@svg(Phosphor::Star->getLabel())

// Use it as svg helper
{{ svg(Phosphor::Star->getLabel()) }}

// Use it as component

```

Commands
--------

[](#commands)

This package gives you an artisan command, so you can sync Phosphor icons from Blade icons to this package enum. It is, of course, a temporary solution in case new icons have dropped and this package is not updated yet.

```
php artisan phosphor:sync
```

By default, the command updates the enum file inside this package. You can preview the result or point it to a specific enum path:

```
php artisan phosphor:sync --dry-run
php artisan phosphor:sync --enum-path=src/Enums/Phosphor.php
```

Credits
-------

[](#credits)

- [Tone Gabes](https://github.com/tonegabes)
- [Phosphor icons](https://phosphoricons.com)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License](LICENSE.md) for more information.

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance86

Actively maintained with recent releases

Popularity34

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.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 ~36 days

Recently: every ~61 days

Total

8

Last Release

66d ago

Major Versions

0.1.0-beta → 1.0.02025-08-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/e3601e3761366d2e66ee37b091360e1c9bfc1d1dc764ff0f940434c9c75a36fc?d=identicon)[tonegabes](/maintainers/tonegabes)

---

Top Contributors

[![tonegabes](https://avatars.githubusercontent.com/u/13951423?v=4)](https://github.com/tonegabes "tonegabes (13 commits)")[![webard](https://avatars.githubusercontent.com/u/855788?v=4)](https://github.com/webard "webard (1 commits)")

---

Tags

laravellibraryiconsfilamentPhosphorIconset

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/tonegabes-filament-phosphor-icons/health.svg)

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

###  Alternatives

[ysfkaya/filament-phone-input

A phone input component for Laravel Filament

3161.3M25](/packages/ysfkaya-filament-phone-input)[filafly/filament-phosphor-icons

Phosphor icon pack for Filament Icons

1241.5k3](/packages/filafly-filament-phosphor-icons)[wallacemartinss/filament-icon-picker

A beautiful icon picker component for Filament v5 using blade-ui-kit/blade-icons

4723.9k35](/packages/wallacemartinss-filament-icon-picker)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[wsmallnews/filament-nestedset

Filament nestedset tree builder powered by kalnoy/nestedset with Filament v4 and v5 support

197.8k19](/packages/wsmallnews-filament-nestedset)[tapp/filament-form-builder

User facing form builder using Filament components

132.4k3](/packages/tapp-filament-form-builder)

PHPackages © 2026

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