PHPackages                             evanrthompson/nova-ratings - 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. evanrthompson/nova-ratings

ActiveLibrary

evanrthompson/nova-ratings
==========================

A star rating field for Laravel Nova with half-star ratings, custom icons, and color customization.

v1.0.0(1mo ago)00MITVuePHP ^8.3

Since Mar 13Pushed 1mo agoCompare

[ Source](https://github.com/evanrthompson/nova-ratings)[ Packagist](https://packagist.org/packages/evanrthompson/nova-ratings)[ Docs](https://github.com/evanrthompson/nova-ratings)[ RSS](/packages/evanrthompson-nova-ratings/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Nova Ratings
============

[](#nova-ratings)

A star rating field for Laravel Nova 5 with half-star ratings, custom icons, and color customization.

Requirements
------------

[](#requirements)

- PHP 8.3+
- Laravel Nova 5.0+

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

[](#installation)

```
composer require evanrthompson/nova-ratings
```

Usage
-----

[](#usage)

Add the field to your Nova resource:

```
use Evanrthompson\NovaRatings\NovaRatings;

public function fields(NovaRequest $request): array
{
    return [
        NovaRatings::make('Rating'),
    ];
}
```

Options
-------

[](#options)

### `outOf(int $outOf)`

[](#outofint-outof)

Set the maximum rating scale. Default: `5`.

```
NovaRatings::make('Rating')->outOf(10)
```

### `clearable()`

[](#clearable)

Show a clear button that resets the rating to 0.

```
NovaRatings::make('Rating')->clearable()
```

### `allowHalf()`

[](#allowhalf)

Enable half-star increments. Clicking the left half of an icon sets a `.5` value, the right half sets a whole value.

```
NovaRatings::make('Rating')->allowHalf()
```

### `color(string $color)`

[](#colorstring-color)

Set the filled icon color using any CSS color value.

```
NovaRatings::make('Rating')->color('#f59e0b')
```

### `svg(string $path)`

[](#svgstring-path)

Use a custom SVG file instead of the default star. The SVG file is read at render time and should use `currentColor` for its fill to work with `color()`.

```
NovaRatings::make('Rating')->svg(public_path('icons/heart.svg'))
```

### `emoji(string $emoji)`

[](#emojistring-emoji)

Use an emoji character instead of stars.

```
NovaRatings::make('Rating')->emoji('🔥')
```

> **Note:** `svg()` and `emoji()` are mutually exclusive. If both are called, the last one wins.

Database
--------

[](#database)

Ratings are always stored as a **decimal between 0 and 1** (percentage of the maximum scale). Use a decimal column:

```
$table->decimal('rating', 3, 2)->default(0);
```

The field automatically converts between the stored percentage and the visual scale. For example, a rating of 3.5 out of 5 is stored as `0.70`.

Configuration Example
---------------------

[](#configuration-example)

A real-world resource using multiple rating fields with different configurations:

```
use Evanrthompson\NovaRatings\NovaRatings;

public function fields(NovaRequest $request): array
{
    return [
        NovaRatings::make('Rating')
            ->outOf(5)
            ->clearable()
            ->allowHalf()
            ->sortable()
            ->help('Overall recipe rating'),

        NovaRatings::make('Flavor')
            ->outOf(5)
            ->allowHalf()
            ->svg(public_path('icons/heart.svg'))
            ->color('#ef4444'),

        NovaRatings::make('Spice Level', 'spice_level')
            ->outOf(5)
            ->allowHalf()
            ->emoji('🌶️'),

        NovaRatings::make('Difficulty')
            ->outOf(3)
            ->emoji('🔪'),
    ];
}
```

Nova Compatibility
------------------

[](#nova-compatibility)

The field works with Nova's built-in `readonly()`, `help()`, `sortable()`, and `rules()` methods.

License
-------

[](#license)

MIT

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance90

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~753 days

Total

2

Last Release

45d ago

Major Versions

v0.1 → v1.0.02026-04-05

PHP version history (2 changes)v0.1PHP ^7.3|^8.0

v1.0.0PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1445258?v=4)[Evan R. Thompson](/maintainers/evanrthompson)[@evanrthompson](https://github.com/evanrthompson)

---

Top Contributors

[![evanrthompson](https://avatars.githubusercontent.com/u/1445258?v=4)](https://github.com/evanrthompson "evanrthompson (4 commits)")

---

Tags

laravelfieldstarsnovaRating

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/evanrthompson-nova-ratings/health.svg)

```
[![Health](https://phpackages.com/badges/evanrthompson-nova-ratings/health.svg)](https://phpackages.com/packages/evanrthompson-nova-ratings)
```

###  Alternatives

[nikaia/nova-rating-field

Add start rating field to Laravel Nova

42258.6k](/packages/nikaia-nova-rating-field)[simplesquid/nova-enum-field

A Laravel Nova field to add enums to resources.

52391.9k2](/packages/simplesquid-nova-enum-field)[ghanem/rating

Rating system for Laravel

8615.5k](/packages/ghanem-rating)[rennokki/rating

Laravel Eloquent Rating allows you to assign ratings to any model.

19016.9k](/packages/rennokki-rating)[inspheric/nova-defaultable

Default values for Nova fields when creating resources and running resource actions.

51174.8k1](/packages/inspheric-nova-defaultable)[oneduo/nova-time-field

A Laravel Nova time field

13157.6k](/packages/oneduo-nova-time-field)

PHPackages © 2026

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