Add beautiful and customizable rating fields and columns to Filament forms and tables.
| Form Component | Table Column | Infolist Entry |
|---|---|---|
![]() |
![]() |
![]() |
This package is a fork of mokhosh/filament-rating,
customized to fit the specific needs of an internal project.
Modifications include:
- ✅ Feature adjustments and enhancements
- ✅ Logic changes based on project requirements
- ✅ Compatibility improvements (if applicable)
All original copyrights remain with the original author
under the terms of the MIT license.
You can install the package via composer:
composer require siopen/filament-ratingYou can add a rating field to your forms like this:
use Mokhosh\FilamentRating\Components\Rating;
$form->schema([
Rating::make(),
]);You can add a rating column to your tables like this:
use Mokhosh\FilamentRating\Columns\RatingColumn;
$table->schema([
RatingColumn::make(),
]);You can add a rating entry to your infolists like this:
use Mokhosh\FilamentRating\Entries\RatingEntry;
$infolist->schema([
RatingEntry::make(),
]);You can choose the theme.
The default value is: RatingTheme::Simple.
The accepted values are: RatingTheme::Simple, RatingTheme::HalfStars, like this:
use Mokhosh\FilamentRating\RatingTheme;
$form->schema([
Rating::make()->theme(RatingTheme::Simple),
]);You can change the number of total stars.
The default value is 5.
The accepted values are number, like this:
$form->schema([
Rating::make()->stars(10),
]);If you want to allow zero stars to be chosen, you can do so like this:
$form->schema([
Rating::make()->allowZero(),
]);You can customize the size of the stars.
The default value is md.
The accepted values are: xs, sm, md, lg and xl, like this:
$form->schema([
Rating::make()->size('sm'),
]);You can customize the color of the stars by choosing one of the Filament theme colors.
The default value is primary.
The accepted values are: danger, gray, info, primary, success and warning, like this:
$form->schema([
Rating::make()->color('success'),
]);composer testPlease see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.


