tonegabes/filament-phosphor-icons
Action::make()->icon()), ensuring consistency with Filament’s component model. No monolithic icon registry is imposed.Phosphor::Star->withWeight(Weight::Bold)), enabling dynamic theming without hardcoding.filament/support), and explicitly designed for Filament’s icon API. No PHP version or Laravel major version constraints beyond Filament’s own.filament/support v2.x+). Backward compatibility is implied by the package’s dual support.Phosphor::cases()) could impact performance in large-scale apps. Benchmark if using >100 icons in a single view..filament-icon, Phosphor’s SVG classes (e.g., i-phosphor-star) might require scoped selectors to avoid unintended styling leaks.icon() method signature. Monitor Filament’s changelog for API shifts.icon() method. No middleware or service provider hooks needed.filament/support’s default icon styles aren’t overridden (e.g., !important conflicts).Phosphor::Star enum values in PHPUnit.Action, Toggle, and Badge components.heroicon('star') → Phosphor::Star).UserManagementPage).config/filament.php defaults).| Dependency | Version Check | Risk Level |
|---|---|---|
| Laravel | 9.x–11.x (Filament’s supported range) | Low |
| Filament | 4.x or 5.x | Low |
| PHP | 8.1+ (Filament’s minimum) | Low |
| Phosphor Icons | ~2.0 (via CDN/SVG) | Low |
| Tailwind CSS | v3.x+ (if using Filament’s default) | Medium |
filament/support’s default icon classes (e.g., filament-icon) aren’t overridden. Use !important sparingly.filament/support is updated to the latest stable version.composer require tonegabes/filament-phosphor-icons.use ToneGabes\Filament\Icons\Enums\Phosphor.icon(Phosphor::StarBold)Toggle::make()->onIcon(Phosphor::Check)column()->icon(Phosphor::Eye)app/Enums/CustomPhosphor.php for app-specific icons.Phosphor::NewIcon).tonegabes/filament-phosphor-icons for updates (MIT license allows forks if needed).filament/support styles.!important in custom themes).Phosphor::fallbackTo('heroicon')).| Scenario | Impact | Mitigation |
|---|---|---|
| Phosphor CDN fails | Broken icons | Fallback to local SVGs or defaults. |
| Filament icon API changes | Integration breaks | Monitor Filament releases. |
| Custom CSS overrides icon styles | Visual corruption | Scope selectors (e.g., .filament-icon--phosphor). |
| Enum reflection in large apps | Minor performance dip | Preload frequently used icons. |
Phosphor::Star->value returns star).heroicon('trash') → Phosphor::Trash).How can I help you explore Laravel packages today?