Plugins
Star Rating
Star rating field & column.
Form Builder
Table Column
Table Builder
Action
Form Field
Dark theme support
Yes
Multi language support
Yes
Compatible with the latest version
Supported versions: 2.x - 3.x
Documentation

Latest Version on Packagist GitHub Code Style Action Status Total Downloads

Star rating field & Star column.

#Support us

"Buy Me A Coffee"

Youtube Video

#Installation

You can install the package via composer:

composer require ibrahimbougaoua/filament-rating-star

You can publish the config file with:

php artisan vendor:publish --tag="filament-rating-star-config"

This is the contents of the published config file:

return [
'stars' => [
'star1' => '1',
'star2' => '2',
'star3' => '3',
'star4' => '4',
'star5' => '5',
]
];

Optionally, you can publish the views using

php artisan vendor:publish --tag="filament-rating-star-views"

#Usage

With Form :

use IbrahimBougaoua\FilamentRatingStar\Forms\Components\RatingStar;
 
return $form
->schema([
Section::make()
->schema([
RatingStar::make('rating')
->label('Rating')
])
])

With Table :

use IbrahimBougaoua\FilamentRatingStar\Columns\Components\RatingStar;
 
return $table
->columns([
RatingStar::make('rating')
])

With Infolist :

use IbrahimBougaoua\FilamentRatingStar\Entries\Components\RatingStar;
 
return $infolist
->schema([
RatingStar::make('rating')
])

You can use the size method to customize the size of the stars:

use IbrahimBougaoua\FilamentRatingStar\Columns\Components\RatingStar;
 
return $table
->columns([
RatingStar::make('rating')
->size('sm')
])

Supported sizes are xs, sm, md, lg and xl.

#Testing

composer test

#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.

Ibrahim Bougaoua

Experienced Backend / Frontend web Programmer. Graduated with a master degree in software engineer. Enjoy learning and staying current on bleeding edge technology, look forward to developing and exercising years of knowledge on new projects.

6
Plugins
261
Stars
More from this author
Featured Plugins