Rating
CommunityAdd beautiful and customizable rating fields and columns to your forms and tables.
Author:
Mo Khosh
Package health
BetaAutomated checks of this plugin's Composer package
15 checks
- Failed: GitHub Actions pinned to SHA — View details on Plumb
- Skipped: GitLab CI includes pinned to SHA
- Passed: Open security advisories
- Failed: Dependabot PR responsiveness — Stale Dependabot PRs: oldest general PR is 286 days old. View details on Plumb
- Skipped: Renovate MR responsiveness
- Warning: Dependabot or Renovate configured — Updater does not cover the JavaScript ecosystem, which has a committed lockfile.
-
Failed:
Dependency update cooldown configured
—
No cooldown configured in
.github/dependabot.yml. View details on Plumb - Passed: Provides a security policy
- Passed: Abandoned or archived — No consulted source marks the package abandoned (packagist, github).
- Warning: Commit and release recency — Low activity: last commit 195 days ago; last release 340 days ago.
-
Passed:
composer.lock not committed by library
—
composer.lockis absent from the released dist archive. - Passed: Dist archive is lean
-
Passed:
Current Laravel version supported
—
Package dependencies resolve together with current Laravel
13.0. -
Passed:
Current PHP version supported
—
Constraint
^8.2supports current PHP8.5. - Skipped: Current Symfony version supported
filament/
namespace. Review the source and install at your own risk. Found
malware or an unresolved security issue the author won't
address?
Report it
.
Documentation
- Installation
- Usage
- Themes
- Maximum Stars
- Allowing Zero Stars
- Customizing The Size
- Customizing Colors
- Testing
- Changelog
- Contributing
- Security Vulnerabilities
- Credits
- License
Add beautiful and customizable rating fields and columns to Filament forms and tables.
| Form Component | Table Column | Infolist Entry |
|---|---|---|
![]() |
![]() |
![]() |
#Installation
You can install the package via composer:
composer require mokhosh/filament-rating
Publish the assets so the styles are correct:
php artisan filament-rating:install
#Usage
You 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(),
]);
#Themes
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),
]);
#Maximum Stars
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),
]);
#Allowing Zero Stars
If you want to allow zero stars to be chosen, you can do so like this:
$form->schema([
Rating::make()->allowZero(),
]);
#Customizing The Size
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'),
]);
#Customizing Colors
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'),
]);
#Testing
composer test
#Changelog
Please see CHANGELOG for more information on what has changed recently.
#Contributing
Please see CONTRIBUTING for details.
#Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
#Credits
#License
The MIT License (MIT). Please see License File for more information.
The author
I've been tinkering around with computers for almost 30 years. I'm currently enjoying the TALL stack plus Filament as my goto development stack. mysadaqa is one of the websites I created using the TALL stack.
From the same author
Jalali
Add Jalali / Shamsi calendar to Filament's DateTime column, and DateTimePicker.
Author:
Mo Khosh
Kanban
Easily add kanban board pages to your Filament panels.
Author:
Mo Khosh
Featured Plugins
A selection of plugins curated by the Filament team
Blueprint
Filament Blueprint is a premium Laravel Boost extension that helps AI agents produce accurate, detailed implementation plans and security reports for Filament apps.
Filament
Custom Fields
Eliminate custom field migrations forever. Let your users create and manage form fields directly in Filament admin panels with 20+ built-in field types, validation, and zero database changes.
Relaticle
Custom Dashboards
Let your users build and share their own dashboards with a drag-and-drop interface. Define your data sources in PHP and let them do the rest.
Filament


