https://github.com/tomatophp/filament-icons
Picker & Table Column & Icons Provider for FilamentPHP
https://github.com/tomatophp/filament-icons
filamentphp heroicons icon icon-picker icons icons-pack tailwindcss
Last synced: 6 months ago
JSON representation
Picker & Table Column & Icons Provider for FilamentPHP
- Host: GitHub
- URL: https://github.com/tomatophp/filament-icons
- Owner: tomatophp
- License: mit
- Created: 2024-05-09T13:19:36.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-08T14:08:31.000Z (8 months ago)
- Last Synced: 2025-04-12T03:17:25.567Z (6 months ago)
- Topics: filamentphp, heroicons, icon, icon-picker, icons, icons-pack, tailwindcss
- Language: PHP
- Homepage: https://tomatophp.com/en/open-source/filament-icons
- Size: 3.47 MB
- Stars: 23
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Security: SECURITY.md
Awesome Lists containing this project
README

# Filament Icons Picker & Provider
[](https://packagist.org/packages/tomatophp/filament-icons)
[](https://packagist.org/packages/tomatophp/filament-icons)
[](https://packagist.org/packages/tomatophp/filament-icons)Picker & Table Column & Icons Provider for FilamentPHP
## Screenshots





## Installation
```bash
composer require tomatophp/filament-icons
```after install use this command to cache all icons
```bash
php artisan filament-icons:install
```## Usage
```php
use TomatoPHP\FilamentIcons\Components\IconPicker;public static function form(Form $form): Form
{
return $form
->schema([
IconPicker::make('icon')
->default('heroicon-o-academic-cap')
->label('Icon'),
]);
}
``````php
use TomatoPHP\FilamentIcons\Components\IconColumn;public static function table(Table $table): Table
{
return $table
->columns([
IconColumn::make('icon')
->label('Icon'),
]);
}
```## Add Custom Icons
you can add a custom icon lib by use this Facade class inside your provider like this
```php
use TomatoPHP\FilamentIcons\Facades\FilamentIcons;public function boot(): void
{
FilamentIcons::register('boxicons')
->asset('https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css')
->template('', 'text-xl', 'text-sm')
->icons([
"bx bx-accessibility",
"bx bx-add-to-queue",
"bx bx-adjust"
])
->replace(['bx ', 'bxs-', 'bxl-', 'bx-'])
->save();
}
```than you need to clear cache by use this command
```bash
php artisan filament-icons:clear
```to cache it again use this command
```bash
php artisan filament-icons:install
```you can try add Box Icons using this snap [Box Icon Snap](boxicons-provider-snap.md)
## Publish Assets
you can publish views file by use this command
```bash
php artisan vendor:publish --tag="filament-icons-views"
```## Publish Config
you can publish config file by use this command
```bash
php artisan vendor:publish --tag="filament-icons-config"
```## Other Filament Packages
Checkout our [Awesome TomatoPHP](https://github.com/tomatophp/awesome)