ghanem/rating
Ghanem Rating is a flexible Laravel package for adding ratings and reactions to any Eloquent model. It supports multiple rating types, average score calculations, user-specific ratings, and simple integration with Blade views and APIs. Ideal for star ratings, likes, and other feedback.
Architecture fit
User model (rater) with a polymorphic rateable relation. This fits a conventional modular monolith cleanly and does not impose a new architectural layer.rateable_type, rateable_id, user_id, value) is genuinely worth more than the ~100 lines it appears to save.Integration feasibility
composer require, publish config/migrations, add a trait to two or three models, render a UI. A competent Laravel developer should reach a working prototype in under a day.Technical risk
Key questions
main — not just the tagged release.Stack fit
Migration path
RatingService / repository interface with your own DTOs. This costs roughly half a day and converts an unmaintainable dependency into a swappable one.Compatibility
rateable_type values across tables.Sequencing
Maintenance
Support
Scaling
user_id, rateable_type, rateable_id), plus an index on (rateable_type, rateable_id) for aggregation.Failure modes
Ramp-up
How can I help you explore Laravel packages today?