filafly/phosphor-icon-replacement

Replace the default Filament icons with Phosphor icons.

dev-main 2025-01-17 23:01 UTC

This package is not auto-updated.

Last update: 2025-01-18 02:13:59 UTC


README

Banner

Tired of Heroicons? Quickly swap out all icons used by the Filament framework with Phosphor icons. Include support for 6 different icon styles.

Requirements

  • PHP 8.1+
  • Filament v3.2+

Installation

There are only two steps to install Phosphor Icon Replacement. First, you need to install the package via composer:

composer require filafly/phosphor-icon-replacement

Secondly, add the plugin to any panels you wish:

->plugin(\Filafly\PhosphorIconReplacement::make())

Styles

All 6 Phosphor icon styles are available and can be used by simply calling the style name as a method on the plugin:

PhosphorIconReplacement::make()->thin()
PhosphorIconReplacement::make()->light()
PhosphorIconReplacement::make()->regular()
PhosphorIconReplacement::make()->bold()
PhosphorIconReplacement::make()->fill()
PhosphorIconReplacement::make()->duotone()

If no style is explicitly chosen, regular will be used.

License

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