PHP code example of mokhosh / filament-rating

1. Go to this page and download the library: Download mokhosh/filament-rating 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/ */

    

mokhosh / filament-rating example snippets


use Mokhosh\FilamentRating\Components\Rating;

$form->schema([
    Rating::make(),
]);

use Mokhosh\FilamentRating\Columns\RatingColumn;

$table->schema([
    RatingColumn::make(),
]);

use Mokhosh\FilamentRating\Entries\RatingEntry;

$infolist->schema([
    RatingEntry::make(),
]);

use Mokhosh\FilamentRating\RatingTheme;

$form->schema([
    Rating::make()->theme(RatingTheme::Simple),
]);

$form->schema([
    Rating::make()->stars(10),
]);

$form->schema([
    Rating::make()->allowZero(),
]);

$form->schema([
    Rating::make()->size('sm'),
]);

$form->schema([
    Rating::make()->color('success'),
]);
bash
php artisan filament-rating:install