PHPackages                             mokhosh/filament-rating - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mokhosh/filament-rating

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mokhosh/filament-rating
=======================

Add rating fields and columns to Filament forms and tables

v2.0.0(9mo ago)82117.9k—9.8%21[4 PRs](https://github.com/mokhosh/filament-rating/pulls)1MITBladePHP ^8.2CI passing

Since Mar 17Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/mokhosh/filament-rating)[ Packagist](https://packagist.org/packages/mokhosh/filament-rating)[ Docs](https://github.com/mokhosh/filament-rating)[ GitHub Sponsors](https://github.com/mokhosh)[ RSS](/packages/mokhosh-filament-rating/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (13)Used By (1)

Add rating fields and columns to Filament forms and tables
==========================================================

[](#add-rating-fields-and-columns-to-filament-forms-and-tables)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7dd2ff5ba83b25dc1770efb0cb038beb3104386ff4d120f3d522eb701e396e45/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f6b686f73682f66696c616d656e742d726174696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mokhosh/filament-rating)[![GitHub Tests Action Status](https://camo.githubusercontent.com/5ae475e70250eac9ecb5b8ad0023a6a020466018d613e3a2f2c5d40a12ef2897/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6f6b686f73682f66696c616d656e742d726174696e672f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/mokhosh/filament-rating/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/5f5a10beebe816f6a693cfd692e4c743efab636198fbabd294bdc940fb049c3b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6f6b686f73682f66696c616d656e742d726174696e672f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/mokhosh/filament-rating/actions?query=workflow%3A%22Fix+PHP+code+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/58ed62453f93412d40be302aa3582e14cae89a6e1707f4a24e17295c09832f1d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f6b686f73682f66696c616d656e742d726174696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mokhosh/filament-rating)

Add beautiful and customizable rating fields and columns to Filament forms and tables.

Form ComponentTable ColumnInfolist Entry[![Rating form component](https://raw.githubusercontent.com/mokhosh/filament-rating/main/images/mokhosh-filament-rating-form.png)](https://raw.githubusercontent.com/mokhosh/filament-rating/main/images/mokhosh-filament-rating-form.png)[![Rating table column](https://raw.githubusercontent.com/mokhosh/filament-rating/main/images/mokhosh-filament-rating-table.png)](https://raw.githubusercontent.com/mokhosh/filament-rating/main/images/mokhosh-filament-rating-table.png)[![Rating infolist entry](https://raw.githubusercontent.com/mokhosh/filament-rating/main/images/mokhosh-filament-rating-infolist.png)](https://raw.githubusercontent.com/mokhosh/filament-rating/main/images/mokhosh-filament-rating-infolist.png)Installation
------------

[](#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
-----

[](#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
------

[](#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
-------------

[](#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
-------------------

[](#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
--------------------

[](#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
------------------

[](#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
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Mo Khosh](https://github.com/mokhosh)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance69

Regular maintenance activity

Popularity48

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 76.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~58 days

Recently: every ~87 days

Total

10

Last Release

271d ago

Major Versions

v0.2.1 → v1.0.02024-03-17

v1.4.1 → v2.0.02025-08-21

PHP version history (2 changes)v0.1.0PHP ^8.1

v2.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/939919859a4e4f8e56b5771bc355135f44d98d8a3926baa6ce4358d2dc090edf?d=identicon)[mokhosh](/maintainers/mokhosh)

---

Top Contributors

[![mokhosh](https://avatars.githubusercontent.com/u/6499685?v=4)](https://github.com/mokhosh "mokhosh (67 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (10 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (8 commits)")[![ilvsx](https://avatars.githubusercontent.com/u/5467343?v=4)](https://github.com/ilvsx "ilvsx (1 commits)")[![mohamedsabil83](https://avatars.githubusercontent.com/u/10126040?v=4)](https://github.com/mohamedsabil83 "mohamedsabil83 (1 commits)")[![mvd81](https://avatars.githubusercontent.com/u/5435962?v=4)](https://github.com/mvd81 "mvd81 (1 commits)")

---

Tags

laravelmokhoshfilament-rating

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mokhosh-filament-rating/health.svg)

```
[![Health](https://phpackages.com/badges/mokhosh-filament-rating/health.svg)](https://phpackages.com/packages/mokhosh-filament-rating)
```

###  Alternatives

[guava/calendar

Adds support for vkurko/calendar to Filament PHP.

298241.0k3](/packages/guava-calendar)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)[jibaymcs/filament-tour

Bring the power of DriverJs to your Filament panels and start a tour !

12247.8k](/packages/jibaymcs-filament-tour)[marcelweidum/filament-expiration-notice

Customize the livewire expiration notice

9169.0k4](/packages/marcelweidum-filament-expiration-notice)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[outerweb/filament-settings

Filament integration for the outerweb/settings package

3690.9k4](/packages/outerweb-filament-settings)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
