CORE · FREE / MIT LICENSED

The review engine.
Your interface.

Attach reviews, configurable ratings, recommendations, and optional photos to any Eloquent model. Core gives you the complete backend without imposing a storefront, CSS framework, or hosted service.

Laravel 10–13PHP 8.1+Unlimited applications
INSTALL CORE
composer require codebyray/laravel-review-rateable:^2.2

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

php artisan migrate
No license key. No account required.Install from Packagist and keep your review data in your own application.
CORE CAPABILITIESPolymorphic reviewsCustom criteriaApproval controlOptional photosStatistics
A COMPLETE OPEN-SOURCE FOUNDATION

Core isn't a trial.
Build the experience you need.

Every backend capability below is free and production-ready. Pro adds interfaces and advanced workflows without moving or replacing your Core data.

Any Eloquent model

Attach feedback to products, posts, services, bookings, or your own model through a polymorphic relationship and a simple trait.

Multi-criteria ratings

Define rating keys such as overall, quality, service, or value with application-specific labels and scoring ranges.

Review departments

Give sales, support, or other contexts independent rating criteria and department-scoped review queries.

Approval & recommendations

Keep new reviews pending or approve immediately. Create, update, approve, and delete reviews through the PHP API.

Ordered review photos

Add, remove, and reorder images. Configure disk, directory, MIME types, file size, and count only when your app needs photos.

Rating statistics

Retrieve averages by criterion or department, totals, distributions, and percentages, with filters for approval and rating values.

Predictable file lifecycle

Use original and thumbnail URL helpers, eager-load images, and safely clean up stored files after database commits.

Developer-first APIs

Work through the Eloquent trait or injectable service contract, configure your user model, and keep control of authorization and UI.

SMALL INTEGRATION · YOUR ARCHITECTURE

Keep your models.
Add perspective.

Core is intentionally headless. Add the trait, choose your rating criteria, and render the result with Blade, an API, or any front-end stack you already use.

Build your first reviewable model →
CORE Your front end remains your choice.
use Codebyray\ReviewRateable\Traits\ReviewRateable;
use Illuminate\Database\Eloquent\Model;

class Product extends Model
{
    use ReviewRateable;
}

$review = $product->addReview([
    'review' => 'My new everyday favorite.',
    'recommend' => true,
    'ratings' => ['overall' => 5, 'quality' => 4],
], auth()->id());
OPTIONAL BY DESIGN

Add review photos
without permanent clutter.

Core's photo support is included free, but its table is published separately. Applications that do not need images never create it.

01

Publish when needed

Install the review-images migration only for applications that accept customer photos.

02

Configure the limits

Choose storage disk, directory, file size, image count, MIME types, and URL behavior.

03

Own the presentation

Core provides ordered images and URL helpers while leaving the gallery, modal, and CSS to your app.

WHEN YOU WANT MORE THAN THE ENGINE

Keep Core. Add the head start.

Pro installs Core automatically and adds interfaces, moderation, customer engagement, and team workflows on the same data model.