PHPackages                             beksos/reviewmaster - 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. [Database &amp; ORM](/categories/database)
4. /
5. beksos/reviewmaster

ActiveLaravel-package[Database &amp; ORM](/categories/database)

beksos/reviewmaster
===================

A Laravel Package for User Review on Models, like Product review for ecommerce systems.

v1.0.1(4y ago)012MITPHPPHP ^7.2

Since Sep 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/BechirAhmed/reviewmaster)[ Packagist](https://packagist.org/packages/beksos/reviewmaster)[ RSS](/packages/beksos-reviewmaster/feed)WikiDiscussions master Synced 2w ago

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

Review-Ratings: Laravel Package
===============================

[](#review-ratings-laravel-package)

[![Latest Stable Version](https://camo.githubusercontent.com/bce369d71ca2625aa2b12ed6dca8c75b0129c1a984e55cd74671f18fa9fdce64/68747470733a2f2f706f7365722e707567782e6f72672f62656b736f732f7265766965776d61737465722f762f737461626c65)](https://packagist.org/packages/beksos/reviewmaster)[![Total Downloads](https://camo.githubusercontent.com/90a41a124f76c095d666e6c2345ce5a1ca206813829c245b507e8788cf50547a/68747470733a2f2f706f7365722e707567782e6f72672f62656b736f732f7265766965776d61737465722f646f776e6c6f616473)](https://packagist.org/packages/beksos/reviewmaster)[![Latest Unstable Version](https://camo.githubusercontent.com/12c6ca8cbf1ccb7e8ac19935d8ed6a0629fa508a8f2fc4395df46f037d0ca3db/68747470733a2f2f706f7365722e707567782e6f72672f62656b736f732f7265766965776d61737465722f762f756e737461626c65)](https://packagist.org/packages/beksos/reviewmaster)[![License](https://camo.githubusercontent.com/a22997cde17d95b75ef77d19f9c34cbbf8a4b4ec04f245067cb4fcb8ac90880a/68747470733a2f2f706f7365722e707567782e6f72672f62656b736f732f7265766965776d61737465722f6c6963656e7365)](https://packagist.org/packages/beksos/reviewmaster)

This package is a fork of the original package  by **Jalal Uddin** [Github](https://github.com/dgvai-git), with some improvments.

This package uses a trait for a model which can be reviewable by users (you can specify user model) and give starred/point ratings and only one reply can come from admin as a support response. (like Google playstore review system). This package can be used with any projects like Ecommerce, Shop, Store, etc models.

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

[](#requirements)

- PHP &gt;= 7.1
- Laravel &gt;= 5.6

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

[](#installation)

> using COMPOSER

` composer require beksos/reviewmaster`

Configurations
--------------

[](#configurations)

> Export the assets (migration and config)

`php artisan vendor:publish --provider="Beksos\Review\ReviewerServiceProvider" `

> Run the migration

`php artisan migrate`

> Clear configuration cache

`php artisan config:cache`

Usage
-----

[](#usage)

Add `Reviewable` trait to the model where you want users to give review and ratings. As example for **Product Model**Specify the user model in the config/reviewmaster file, by default it uses User.

```

```

### Creating review for a product:

[](#creating-review-for-a-product)

> Description

`makeReview(object $user, int $rating [, string $review])`

> Returns

`Object instance of the review`

> Example

```
    $product = Product::find($id);
    $user = auth()->user();

    $product->makeReview($user,3,'Very good product!');
```

### Review attributes

[](#review-attributes)

```
    // Get all active reviews of the product
    $product->reviews();

    // Get neumetic review count (average)
    $product->rating;

    // Get percentage review count (average)
    $product->rating_percent;

    /**
    *   NOTE: THIS PERCENTAGE IS BASED ON 5 STAR RATING, IF YOU WANT CUSTOM STAR, USE BELLOW
    *   This is configured via the config file comes with this package: user-review.php
    *   You can also set environment variable for your systems default star count
    *
    *   (.env)  SYSTEM_RATING_STAR_COUNT=5
    */

    $product->averageRating(10);    //percentage for 10 starrted model

    // Get rating given to the product by a user:
    $product->userRating($user);

    /**
     *  Get Filtered Review
     *  Like, get only reviews that has been given 4 stars!
     *
    */

    $product->filter(4);

    /**
     * Get it's percentage, which can be shown in the progress bar!
     * */
    $product->filteredPercentage(4);      // ex: output: 75

    /**
     *  PULLING OUT REVIEWS
     *  There are several ways you can
     *  pull out reviews of products
    */

    // Get all reviews of all products
    $reviews = Beksos\Review\Review::all();              // all reviews
    $reviews = Beksos\Review\Review::active()->get();    // all active reviews
    $reviews = Beksos\Review\Review::inactive()->get();  // all inactive reviews
    $reviews = Beksos\Review\Review::daily()->get();     // all daily reviews
    $reviews = Beksos\Review\Review::monthly()->get();   // all monthly reviews
    $reviews = Beksos\Review\Review::yearly()->get();    // all yearly reviews

    // You can also chain these methods
    $reviews = Beksos\Review\Review::monthly()->active()->get();  // get aa monthly active reviews

    // Get reviews of a product
    $product->reviews();

    /**
     *  $reviews has some attributes
     *  Let's assume we are taking the first review
    */
    $review = $reviews->first();

    /**
     *  This the model object of the traited model
     *  In our case it is product
     *
    */

    $review->model;     //  so $review->model->name with return the $product->name
    $review->user;      //  return User model that reviewed the model

    // Get review text
    $review->review_text;

    // Get review reply
    $review->reply;

    // reply a review by admin:
    $review->reply('Thanks for being with us!');

    // making active/inactive
    $review->makeActive();
    $review->makeInactive();
```

> Till now that's it! Updates will bring new features soon InshaAllah.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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 ~3 days

Total

2

Last Release

1799d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b22ca94d6a92f5e8fb2503de387d28f15b5f5a621857470b0a97a1498bb4bc99?d=identicon)[BechirAhmed](/maintainers/BechirAhmed)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/beksos-reviewmaster/health.svg)

```
[![Health](https://phpackages.com/badges/beksos-reviewmaster/health.svg)](https://phpackages.com/packages/beksos-reviewmaster)
```

###  Alternatives

[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

11.3k4.0k](/packages/leantime-leantime)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

137236.2k8](/packages/statamic-rad-pack-runway)[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11225.5M36](/packages/anourvalar-eloquent-serialize)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3622.8k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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