New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

codebyray/laravel-review-rateable

Review & Rating system for Laravel 10, 11, 12 & 13
371,173 314

Larablocks Analysis

codebyray/laravel-review-rateable works with Laravel 10 to 13 (latest release v2.3.1, Nov 25, 2026).

Laravel 5 to 9 in earlier releases.

Recommendation checks

Solid choice

Solid choice: maintained and up to date, meets 3 of 4 checks; below the bar for Recommended on use.

  • Works with Laravel 13, the current version
  • Released in the last 12 months (Nov 25, 2026)
  • 4,391 downloads a month (needs 10,000)
  • 314 GitHub stars (at least 100)

State

Actively maintained
  • Last stable release: Nov 25, 2026.
  • 8 releases in the last 12 months.
  • First released: Oct 26, 2018.
  • Monthly downloads: 4,391, up 176% from six months ago.
  • 1 open issue on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.

Install
composer require codebyray/laravel-review-rateable
Latest Version:v2.3.1
PHP:>=8.1
Laravel:10 – 13
Older releases:5 – 9
License:MIT
Last Updated:Nov 25, 2026
Links: GitHub  ·  Packagist
Maintainer: codebyray

Laravel Review Rateable

Packagist downloads Latest release Tests License: MIT

Laravel Review Rateable is an MIT-licensed package for attaching written reviews and multiple rating criteria to any Eloquent model. Core provides the review engine and APIs; your application owns its interface, authentication, authorization, and upload flow.

Core documentation · Live demo · Packagist

Upgrading from v1? Version 2 is an architectural rewrite, not an in-place upgrade. Plan a data migration and update your integration to the new trait and service contract. See the installation guide.

Features

  • Reviews and multiple configurable rating criteria on any Eloquent model
  • Departments with their own rating keys and labels
  • Approval controls and approved-review queries
  • Optional, ordered review images with application-supplied thumbnails
  • Averages, distributions, counts, and a decoupled service contract

Requirements

  • PHP 8.1 or higher, subject to your Laravel version's PHP requirements
  • Laravel 10, 11, 12, or 13
  • Compatible numeric IDs for reviewable models and users; the current Core schema does not support UUID identity

Use an upstream-supported PHP version and the latest security patches for Laravel 12 or 13 for new deployments. Laravel 10/11 and PHP 8.1 remain historical compatibility targets; passing their tests does not provide upstream security support. See maintenance upgrades.

Installation

In your Laravel application:

composer require codebyray/laravel-review-rateable:^2.3

php artisan vendor:publish --provider="Codebyray\ReviewRateable\ReviewRateableServiceProvider" --tag=config
php artisan vendor:publish --provider="Codebyray\ReviewRateable\ReviewRateableServiceProvider" --tag=migrations
php artisan migrate

Laravel discovers the service provider automatically. Publishing reuses an existing migration filename and leaves it unchanged unless you explicitly pass --force. Review images use a separate opt-in migration, so the basic installation creates only reviews and ratings tables.

For upgrades, configuration, and production considerations, see the full installation guide.

Quick start

Add the trait to a saved Eloquent model:

namespace App\Models;

use Codebyray\ReviewRateable\Traits\ReviewRateable;
use Illuminate\Database\Eloquent\Model;

class Product extends Model
{
    use ReviewRateable;
}

Then create a review using keys from the configured default department:

$review = $product->addReview([
    'review' => 'Comfortable and well made.',
    'department' => 'default',
    'recommend' => true,
    'ratings' => [
        'overall' => 5,
        'customer_service' => 5,
        'quality' => 5,
        'price' => 4,
    ],
], auth()->id());

$publishedReviews = $product->getReviews(); // Approved reviews with ratings.

To build a distribution or filter for one criterion, use the key-aware query helpers:

$overallCounts = $product->ratingCountsForKey('overall', 'default');
$overallStats = $product->ratingStatsForKey('overall', 'default');
$fiveStarOverallReviews = $product->getReviewsByRatingForKey(5, 'overall', 'default');

The same helpers are available from the injectable CriterionRatingContract after calling setModel($product). This extended contract preserves compatibility with existing ReviewRateableContract implementations. The counts and statistics include approved reviews by default; pass approved: false for private pending-review queries. Pass null as the department to count a key across all departments. The existing ratingCounts(), ratingStats(), and getReviewsByRating() methods keep their all-criteria behavior.

In an HTTP endpoint, authenticate the author, authorize the product, and validate the text and configured rating keys before calling addReview(). New reviews are unapproved by default. See the review API guide for a controller example, updates, approval, deletion, and the injectable service.

Full documentation

The Core documentation is the maintained reference for configuration, review queries and statistics, and review images, galleries, and file lifecycle.

Testing

composer install
composer test
composer validate --strict
composer audit

CI tests Laravel 10–13 and runs a separate MySQL regression job. Security audits gate the maintained Laravel 12/13 lanes; historical Laravel 10/11 lanes allow resolving dependencies with known upstream advisories solely to check compatibility.

License and contributions

Core is MIT licensed. Bug reports, questions, and contributions are welcome through GitHub issues.

Optional companion

ReviewRateable Pro adds ready-made Livewire, React, and Vue interfaces and application workflows such as moderation, replies, and invitations. It is an optional commercial package; Core works independently and includes the review, rating, statistics, and image APIs under the MIT license.

Related Packages

trexology/reviewrateable

Rating syetem for Laravel 5

14,394 35
ghanem/rating

Rating system for Laravel

16,894 88
escapeboy/jraty

Package for item ratings + optional microdata format.

632 12
vahanmargaryan/lraty

Raty package for Laravel 5.1

18 5
ghanem/rating-filament

Filament 4 & 5 components for the ghanem/rating package — star input, sortable a...

1,049 1

Version History

Version Released PHP Laravel License
v2.3.1 >=8.1 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
v2.3.0 >=8.1 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
v2.2.1 >=8.1 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
v2.2.0 >=8.1 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
v2.1.4 >=8.1 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
Pre-releases (3)
Version Released PHP Laravel License
v1.2-beta ^7.2 ~5.5.0|~5.6.0|~5.7.0|~5.8.0|~6.0.0 MIT
v1.1-beta ^7.1 ~5.5.0|~5.6.0|~5.7.0|~5.8.0 MIT
v1.0-beta ^7.1 ~5.5.0|~5.6.0|~5.7.0 MIT