PHPackages                             lartisan/filament-rating-tool - 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. lartisan/filament-rating-tool

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

lartisan/filament-rating-tool
=============================

Rating Tool is a FilamentPHP plugin meant to provide a set of tools for measuring or rating different resources of your app.

1.0.1(1y ago)589[2 PRs](https://github.com/lartisan/filament-rating-tool/pulls)MITPHP ^8.2

Since Dec 23Compare

[ Source](https://github.com/lartisan/filament-rating-tool)[ Packagist](https://packagist.org/packages/lartisan/filament-rating-tool)[ Docs](https://github.com/lartisan/filament-rating-tool)[ GitHub Sponsors](https://github.com/lartisan)[ RSS](/packages/lartisan-filament-rating-tool/feed)WikiDiscussions Synced 2d ago

READMEChangelog (1)Dependencies (13)Versions (5)Used By (0)

Filament Rating Tool
====================

[](#filament-rating-tool)

[![Latest Version on Packagist](https://camo.githubusercontent.com/47bd7eec65d25a39aa7be54b784de58a92540db8f332a1ac6ea39312e706b21b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6172746973616e2f66696c616d656e742d726174696e672d746f6f6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lartisan/filament-rating-tool)[![GitHub Tests Action Status](https://camo.githubusercontent.com/bf10b90c6f317e40a2850c126c986c795fd89c511ff956cee427ac44d9f94866/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6172746973616e2f66696c616d656e742d726174696e672d746f6f6c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/lartisan/filament-rating-tool/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/5b0f374ab8cedf42e70f5e145808536804537def98c7d31d620d7d137a5acd4f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6172746973616e2f66696c616d656e742d726174696e672d746f6f6c2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/lartisan/filament-rating-tool/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/20187794dea0e79cad32b13581bc9999bdcb935ced19a18f612d2169f0ba9b87/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6172746973616e2f66696c616d656e742d726174696e672d746f6f6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lartisan/filament-rating-tool)

Filament Rating Tool is a [FilamentPHP](https://filamentphp.com) plugin meant to provide a set of tools for measuring or rating different resources of your app.

### What's different from other (star) rating tools?

[](#whats-different-from-other-star-rating-tools)

Well, we thought of giving a user the possibility to choose an icon, depending on the context of the rating.

For example, if you want to rate a movie, you can use a star icon, if you want to rate a book, you can use a book icon, if you want to provide the number of persons that can occupy a hotel room, you can use a user icon ... and so on, you get the idea. Any icon provided by Filament can be user for rating / measuring.

Also, we made it possible for a user to choose their on size for the icons, the number of icons to be displayed and also the color for the icons. Yeah, you can set different colors for the icons, depending on the rating value.

You can check some examples below or try it yourself on the [demo app](https://www.filamentcomponents.com).

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require lartisan/filament-rating-tool
```

Optionally, you can publish the views using

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

Form Usage
----------

[](#form-usage)

When preparing a form, you need to define a `RatingInput` field and, optionally, make some configurations:

```
RatingInput::make('rating')
    ->size('xl')
    ->maxValue(5)
    ->icon('heroicon-o-stop')
    ->color(fn (int $state): string => match ($state) {
        1 => 'danger',
        2 => 'warning',
        3 => 'info',
        4 => 'primary',
        5 => 'success',
        default => 'gray',
    }),
```

[![Edit meals form](./screenshots/meals-edit.png "Edit meals form")](./screenshots/meals-edit.png)

These are all the possible methods one can use to configure this field. As you can see, you can provide a `maxValue` for your input, so if you want to match some custom color based on the `$state`, you'll need the same amount of colors. Of course, one can only choose one color for all the symbols of the field

```
RatingInput::make('rating')
    ->color('warning')
    // ...
```

Table Usage
-----------

[](#table-usage)

Similar to forms, there is a dedicated column for displaying the measurement value...

```
RatingColumn::make('rating')
    ->size('xs')
    ->maxValue(5)
    ->icon('heroicon-s-star')
    ->color(fn (int $state): string => match ($state) {
        1 => 'danger',
        2 => 'warning',
        3 => 'info',
        4 => 'primary',
        5 => 'success',
        default => 'gray',
    }),
    // ...
```

[![Hotels table](./screenshots/hotels-list.png "Hotels table")](./screenshots/hotels-list.png)

Infolist Usage
--------------

[](#infolist-usage)

... and another one to display the infolist when viewing the records

```
RatingEntry::make('rating')
    ->columnSpan(2)
    ->size('lg')
    ->maxValue(5)
    ->icon('heroicon-s-user')
    ->color(fn (int $state): string => match ($state) {
        1 => 'danger',
        2 => 'warning',
        3 => 'info',
        4 => 'primary',
        5 => 'success',
        default => 'gray',
    }),
    // ...
```

[![Hotel infolist](./screenshots/hotels-view.png "Hotel infolist")](./screenshots/hotels-view.png)

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)

- [Cristian Iosif](https://github.com/lartisan)

License
-------

[](#license)

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

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance42

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~456 days

Total

2

Last Release

468d ago

PHP version history (2 changes)v1.0.0PHP ^8.1

1.0.1PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/2dcd7882a854e97effa9fbf7c979e9c9c7f9795bfb5422224a22253a10fd0cc0?d=identicon)[cristake](/maintainers/cristake)

---

Top Contributors

[![lartisan](https://avatars.githubusercontent.com/u/7920412?v=4)](https://github.com/lartisan "lartisan (8 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

filament-pluginfilament text inputfilament text columnfilament text entryfilament-rating-tool

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[croustibat/filament-jobs-monitor

Background Jobs monitoring like Horizon for all drivers for FilamentPHP

274327.2k8](/packages/croustibat-filament-jobs-monitor)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17760.2k3](/packages/stephenjude-filament-jetstream)[stephenjude/filament-debugger

About

104162.2k2](/packages/stephenjude-filament-debugger)[finity-labs/fin-mail

A powerful email template manager and composer for Filament with dynamic token replacement, template versioning, and inline email sending.

284.5k1](/packages/finity-labs-fin-mail)[tapp/filament-form-builder

User facing form builder using Filament components

132.4k3](/packages/tapp-filament-form-builder)

PHPackages © 2026

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