New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

schmeits/filament-4-phosphor-icons

Phosphor icons for Filament 4 and 5 as a backed enum that scales with Filament's icon sizes, in all six Phosphor weights.
3,768 17
Install
composer require schmeits/filament-4-phosphor-icons
Latest Version:1.1.0
PHP:^8.2
Laravel:11 · 12 · 13
License:MIT
Last Updated:Nov 3, 2026
Links: GitHub  ·  Packagist
Maintainer: schmeits

Phosphor icons for Filament 4 and 5

Latest Version on Packagist Tests PHPStan Total Downloads

All Phosphor icons as a backed enum for Filament. The enum implements Filament's ScalableIcon contract, so every icon follows Filament's icon sizes, and you can pick any of the six Phosphor weights yourself.

The icons themselves come from codeat3/blade-phosphor-icons.

Compatibility

Package Filament Laravel PHP
1.1 4.13.2+ and 5.8.2+ 12, 13 8.2+ (Laravel 13: 8.3+)
1.0 4.x 11, 12 8.2+

The minimum Filament versions are the first ones without known security advisories.

Installation

composer require schmeits/filament-4-phosphor-icons

Usage

use Filament\Forms\Components\TextInput;
use Schmeits\FilamentPhosphorIcons\Support\Icons\Phosphor;

TextInput::make('name')
    ->required()
    ->prefixIcon(Phosphor::Smiley);

Find the icon you need on phosphoricons.com. The enum case is the icon name in PascalCase: smiley-sticker becomes Phosphor::SmileySticker.

Sizes

When you pass the enum itself, Filament asks it for an icon per size. This package maps the sizes to a weight:

Filament size Weight
ExtraSmall, Small thin
Medium regular
Large, ExtraLarge, TwoExtraLarge bold

Weights

To use one weight everywhere, pick it explicitly:

use Schmeits\FilamentPhosphorIcons\Support\Icons\Phosphor;
use Schmeits\FilamentPhosphorIcons\Support\Icons\PhosphorWeight;

->prefixIcon(Phosphor::Smiley->getIconForWeight(PhosphorWeight::Duotone))

The available weights are Thin, Light, Regular, Bold, Fill and Duotone.

Updating the icons

The enum is generated from the installed version of codeat3/blade-phosphor-icons. After upgrading that package:

composer generate-enum

The test suite fails when the enum and the icon source no longer match, in either direction.

Testing

composer test
composer analyse

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security

Please see our security policy on how to report security vulnerabilities.

Need help with Filament?

I'm Tally Schmeits, the maintainer of this package. I build and maintain Filament and Laravel applications for clients: new admin panels and business applications, upgrades to Filament 4 and 5, and taking over existing Filament apps. More at schmeits.com/filament-specialist.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

schmeits/filament-4-tabler-icons

Tabler icons as a typed enum for Filament 4 and 5, built on blade-tabler-icons.

413 6
wallacemartinss/filament-icon-picker

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

61,555 50
schmeits/filament-character-counter

A character counter for the TextInput, Textarea and RichEditor fields of Filamen...

314,348 34
filafly/filament-phosphor-icons

Phosphor icon pack for Filament Icons

88,984 12
tonegabes/filament-phosphor-icons

Phosphor Icons Pack ready for Filament 4

50,867 5

Version History

Version Released PHP License
1.1.0 ^8.2 MIT
1.0.6 ^8.2 MIT
1.0.5 ^8.2 MIT
1.0.4 ^8.2 MIT
1.0.3 ^8.2 MIT