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,586 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:Oct 13, 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.

Credits

License

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

Related Packages

wallacemartinss/filament-icon-picker

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

52,442 50
tonegabes/filament-phosphor-icons

Phosphor Icons Pack ready for Filament 4

45,702 5
filafly/filament-icons

Core package for managing Filament icon drivers via a common interface.

126,157 5
filafly/filament-phosphor-icons

Phosphor icon pack for Filament Icons

76,529 12
schmeits/filament-character-counter

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

303,260 34

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