schmeits/filament-4-phosphor-icons

This is my package filament-4-phosphor-icons

1.0.4 2025-05-13 08:50 UTC

This package is auto-updated.

Last update: 2025-05-13 08:51:35 UTC


README

Latest Version on Packagist GitHub Code Style Action Status Total Downloads

This is a custom icon pack to be used in Filament v4. You can use it to add Phosphor icons everywhere :)

Installation

You can install the package via composer:

composer require schmeits/filament-4-phosphor-icons

Usage

    Forms\Components\TextInput::make('name')
        ->required()
        ->prefixIcon(Phosphor::Smiley)

Check out the Phosphor icons on their website Phosphor Icons to find the icon you want to use.gh

Weights

The package comes with the following weights you can use:

enum PhosphorWeight: string
{
    case Thin = 'thin';
    case Light = 'light';
    case Regular = 'regular';
    case Bold = 'bold';
    case Fill = 'fill';
    case Duotone = 'duotone';
}

You can use the weights in the same way as the icons:

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

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Credits

License

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