Download the PHP package filafly/filament-phosphor-icons without Composer
On this page you can find all versions of the php package filafly/filament-phosphor-icons. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package filament-phosphor-icons
Filament Phosphor Icons
An Phosphor icon set implementation for Filament Icons, allowing for instant replacement of all icons used within the Filament framework.
Installation
You can install the package via composer:
After the package is installed, you must register the plugin in your Filament Panel provider:
Setting the global icon style
Phosphor icons come in multiple styles that you can switch between. Available styles include:
- Regular (default)
- Thin
- Light
- Bold
- Fill
- Duotone
You can change the style using the following methods:
Setting style for a subset of icons
If you need to override certain icons to use a different style, you can use either icon aliases or icon enum cases.
Using icon aliases
Use the overrideStyleForAlias
method with a Filament Icon Alias. This method works with either a single icon key (string) or multiple icon keys (array).
Using icon enum cases
Use the overrideStyleForIcon
method with Phosphor enum case(s). Like the alias method, this works with either a single case or an array of cases.
Specifying exact icons to use
You can also specify exactly which icon you would like to use in given situations. This can be done via icon aliases or icon enum cases.
Override icon aliases
Use overrideAlias()
to change which icon is used for specific Filament icon aliases:
Or use overrideAliases()
to override multiple aliases at once by passing an array:
Override individual icons
Use overrideIcon()
to replace specific Phosphor icons with different ones:
Or use overrideIcons()
to override multiple icons at once by passing an array:
PHP arrays do not support enums as keys so
->value
is necessary if you want to reference the enum
These methods are useful for fine-tuning the icon set to better fit your application's needs.
Icon enum
All icons are available through an enum providing convenient usage throughout Filament. For more information, check the Filament docs.
License
The MIT License (MIT). Please see License for more information.
All versions of filament-phosphor-icons with dependencies
filafly/filament-icons Version ^2.0
codeat3/blade-phosphor-icons Version ^2.3
filament/filament Version ^4.0