PHPackages                             eom-plus/nova-rating-field - 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. eom-plus/nova-rating-field

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

eom-plus/nova-rating-field
==========================

A Laravel Rating Nova field.

124.2k↓50%1[2 issues](https://github.com/operativeit/nova-rating-field/issues)Vue

Since Oct 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/operativeit/nova-rating-field)[ Packagist](https://packagist.org/packages/eom-plus/nova-rating-field)[ RSS](/packages/eom-plus-nova-rating-field/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Nova Rating field
=================

[](#nova-rating-field)

A **Star rating field** to use in your Laravel Nova apps. This package is highly based on [nikaia/nova-rating-field](https://github.com/nikaia/nova-rating-field) thas is incompatible with Nova4 and looks unmaintained for a while.

This README was written by the original author and we just copy it here and change the package and field name.

Uses [vue-star-rating](https://github.com/craigh411/vue-star-rating).

[![Latest Version on Packagist](https://camo.githubusercontent.com/66c9c31efb4f9c8d9cbf3499bf4f658a7c7679f0112cfa94d9508b383a436573/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f706572617469766569742f6e6f76612d726174696e672d6669656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/operativeit/nova-rating-field)[![Total Downloads](https://camo.githubusercontent.com/01273d225463ff0a3603619dd0bfa25372f962141b5f7ac7ac79c89fbb2c1db9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f706572617469766569742f6e6f76612d726174696e672d6669656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/operativeit/nova-rating-field)[![GitHub forks](https://camo.githubusercontent.com/15828faff50b65b4f7ba07915224523e1e309f1af67d49630ad212ddc8379606/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6f706572617469766569742f6e6f76612d726174696e672d6669656c64)](https://camo.githubusercontent.com/15828faff50b65b4f7ba07915224523e1e309f1af67d49630ad212ddc8379606/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6f706572617469766569742f6e6f76612d726174696e672d6669656c64)[![GitHub issues](https://camo.githubusercontent.com/decdd69adcb872d24e689e91a8d6b0987d379ea50cc642d5fcccf440de7490d7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6f706572617469766569742f6e6f76612d726174696e672d6669656c64)](https://camo.githubusercontent.com/decdd69adcb872d24e689e91a8d6b0987d379ea50cc642d5fcccf440de7490d7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6f706572617469766569742f6e6f76612d726174696e672d6669656c64)[![License](https://camo.githubusercontent.com/9d6ed6978dd37e92bf3c49b390e25a46ab8ce78a8ff42e6c0f2cea703d9ae172/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6f706572617469766569742f6e6f76612d726174696e672d6669656c64)](https://github.com/operativeit/nova-rating-field/blob/master/LICENSE.md)

[![image](https://private-user-images.githubusercontent.com/188766/276622433-3eb11e60-cfad-4804-829c-ec7db80f14f7.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQ0MjA5NDAsIm5iZiI6MTc3NDQyMDY0MCwicGF0aCI6Ii8xODg3NjYvMjc2NjIyNDMzLTNlYjExZTYwLWNmYWQtNDgwNC04MjljLWVjN2RiODBmMTRmNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMzI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDMyNVQwNjM3MjBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hNDc5NTU5NzlmNGVhNjgyOTRkNmM4MjI4YzJlMDZhZjEyMjBhNmMzNWI2YmQwZGZjN2Y0YWExZTllOWU0NDgxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Dnf-vmSmU59cqv9j9xbk4ASa1VgG5YwyTwfTDmfsHTU)](https://private-user-images.githubusercontent.com/188766/276622433-3eb11e60-cfad-4804-829c-ec7db80f14f7.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQ0MjA5NDAsIm5iZiI6MTc3NDQyMDY0MCwicGF0aCI6Ii8xODg3NjYvMjc2NjIyNDMzLTNlYjExZTYwLWNmYWQtNDgwNC04MjljLWVjN2RiODBmMTRmNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMzI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDMyNVQwNjM3MjBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hNDc5NTU5NzlmNGVhNjgyOTRkNmM4MjI4YzJlMDZhZjEyMjBhNmMzNWI2YmQwZGZjN2Y0YWExZTllOWU0NDgxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Dnf-vmSmU59cqv9j9xbk4ASa1VgG5YwyTwfTDmfsHTU)

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

[](#installation)

You can install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:

```
composer require eom-plus/nova-rating-field
```

Next you can use the `Eom-Plus\NovaRatingField\Rating` field in your Nova resource.

Usage
-----

[](#usage)

```
public function fields(Request $request)
{
    return [
        // ...

        Rating::make('Rating')->min(0)->max(5)->increment(0.5)->hideFromIndex(),

        // Defining a custom style for the index page.
        Rating::make('Rating')->min(0)->max(5)->increment(0.5)->hideRating()
            ->withStyles([
                'star-size' => 15,
                'rounded-corners' => true,
            ])->onlyOnIndex()->sortable(),

        // ...

    ];
}
```

### Defining properties

[](#defining-properties)

```
public function fields(Request $request)
{
    Rating::make('Rating')

        // Miniumum rating (default: 0)
        ->min(0)

        // Maximum rating (default: 5)
        // This is how the component knows how many stars it should display.
        ->max(5)

        // Incremet (default: 1)
        // Can be float. The underlying eloquent colum must be defined as float in that case.
        // ie. 0.5 for half stars or 0.01 for fluid stars.
        ->increment(0.5)

        // Show rating value next to the stars
        ->hideRating()

}
```

### Customizing styles

[](#customizing-styles)

You can style the component using `withStyles` method. Options are passed to the the underlying [vue component style props](https://github.com/craigh411/vue-star-rating#style-props).

Default values are :

```
public function fields(Request $request)
{
    Rating::make('Rating')
        ->withStyles([
            'star-size' => 30,
            'active-color' => 'var(--primary)', // Primary nova theme color.
            'inactive-color' => '#d8d8d8',
            'border-color' => 'var(--60)',
            'border-width' => 0,
            'padding' => 10,
            'rounded-corners' => false,
            'inline' => false,
            'glow' => 0,
            'glow-color' => '#fff',
            'text-class' => 'inline-block text-80 h-9 pt-2',
        ]);
}
```

⭐️ Show Your Support
--------------------

[](#️-show-your-support)

Please give a ⭐️ if this project helped you!

### Other Packages You Might Like

[](#other-packages-you-might-like)

- [Nova Rating Field](https://github.com/operativeit/nova-rating-field) - A Star rating Nova 4 field to use in your Laravel Nova apps.
- [Nova Feedback Field](https://github.com/operativeit/nova-feedback-field) - An Emoji feedback Nova 4 field to use in your Laravel Nova apps.
- [Nova Input Group](https://github.com/operativeit/nova-input-group) - A Laravel Nova 4 text field formatted as input group
- [Nova Signature](https://github.com/operativeit/nova-signature) - A Laravel Nova 4 signature pad

Take a look to our Github repositories as we have a lot of forked nova components with fixes that are still not merge into main owner branch.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/operativeit/nova-rating-field/blob/master/LICENSE.md) for more information.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6cf1cdc324d411dfc6db2f2e6ff9d017c704dc023a8d6d539e09123df73ecbf4?d=identicon)[scramatte](/maintainers/scramatte)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/eom-plus-nova-rating-field/health.svg)

```
[![Health](https://phpackages.com/badges/eom-plus-nova-rating-field/health.svg)](https://phpackages.com/packages/eom-plus-nova-rating-field)
```

###  Alternatives

[yii2mod/yii2-bx-slider

Bx-slider widget based on bx-slider extension {@link http://bxslider.com)

1210.8k](/packages/yii2mod-yii2-bx-slider)

PHPackages © 2026

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