PHP code example of papalardo / filament-rating-input
1. Go to this page and download the library: Download papalardo/filament-rating-input library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
papalardo / filament-rating-input example snippets
use Papalardo\FilamentRatingInput\RatingInput;
RatingInput::make('love')
->default(5)
->disableLabel()
->align('center') // start,center,end [default = start]
->maxValue(10) // max items for display [default = 5]
->color('red-800') // tailwind variant color [default = yellow-400]
->icon('heart'), // icon name [heroicon] [default = star]