Phosphor Icon Pack plugin screenshot
Dark mode ready
No multilingual support
No v5.x support

Phosphor Icon Pack by Tally Schmeits

Community

A Phosphor Icon Enum package to use the Phosphor icons everywhere in your Filament project.

Tags: Panels Icon Set
Supported versions:
4.x
Tally Schmeits avatar Author: Tally Schmeits

Package health

Automated checks of this plugin's Composer package

100 / 100
Security 100
Maintenance 100
Ecosystem 100
15 checks
  • Passed: GitHub Actions pinned to SHA
  • Skipped: GitLab CI includes pinned to SHA
  • Passed: Open security advisories
  • Passed: Dependabot PR responsiveness — No open Dependabot PRs.
  • Skipped: Renovate MR responsiveness
  • Passed: Dependabot or Renovate configured
  • Passed: Dependency update cooldown configured
  • Passed: Provides a security policy
  • Passed: Abandoned or archived — No consulted source marks the package abandoned (packagist, github).
  • Passed: Commit and release recency — Active: last commit 1 days ago; last release 483 days ago.
  • Passed: composer.lock not committed by library — composer.lock is absent from the released dist archive.
  • Passed: Dist archive is lean
  • Passed: Current Laravel version supported — Package dependencies resolve together with current Laravel 13.0.
  • Passed: Current PHP version supported — Constraint ^8.2 supports current PHP 8.5.
  • Skipped: Current Symfony version supported
Third-party plugin. This is built by the community, not the Filament team. Filament does not review, endorse, or vet the security of plugins outside the filament/ namespace. Review the source and install at your own risk. Found malware or an unresolved security issue the author won't address? Report it .
Powered by Plumb Last scanned 2 weeks ago

Documentation

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.