PHPackages                             landofcoder/module-product-reviews-graphql - 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. landofcoder/module-product-reviews-graphql

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

landofcoder/module-product-reviews-graphql
==========================================

Magento 2 Advanced Product Reviews GraphQl extension

1.0.4(3y ago)35.2k3OSL-3.0PHP

Since Feb 21Pushed 3y agoCompare

[ Source](https://github.com/landofcoder/module-product-reviews-graph-ql)[ Packagist](https://packagist.org/packages/landofcoder/module-product-reviews-graphql)[ RSS](/packages/landofcoder-module-product-reviews-graphql/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (1)Versions (10)Used By (0)

Magento 2 Module Lof Lof\_ProductReviewsGraphQl
===============================================

[](#magento-2-module-lof-lof_productreviewsgraphql)

`landofcoder/module-product-reviews-graphql`

- [Main Functionalities](#markdown-header-main-functionalities)
- [Installation](#markdown-header-installation)
- [Configuration](#markdown-header-configuration)
- [Specifications](#markdown-header-specifications)
- [Attributes](#markdown-header-attributes)

Main Functionalities
--------------------

[](#main-functionalities)

magento 2 product reviews graphql extension

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

[](#installation)

\* = in production please use the `--keep-generated` option

### Type 1: Zip file

[](#type-1-zip-file)

- Unzip the zip file in `app/code/Lof`
- Enable the module by running `php bin/magento module:enable Lof_ProductReviewsGraphQl`
- Apply database updates by running `php bin/magento setup:upgrade`\*
- Flush the cache by running `php bin/magento cache:flush`

### Type 2: Composer

[](#type-2-composer)

- Make the module available in a composer repository for example:
    - private repository `repo.magento.com`
    - public repository `packagist.org`
    - public github repository as vcs
- Add the composer repository to the configuration by running `composer config repositories.repo.magento.com composer https://repo.magento.com/`
- Install the module composer by running `composer require landofcoder/module-product-reviews-graphql`
- enable the module by running `php bin/magento module:enable Lof_ProductReviewsGraphQl`
- apply database updates by running `php bin/magento setup:upgrade`\*
- Flush the cache by running `php bin/magento cache:flush`

### TODO

[](#todo)

Queries
-------

[](#queries)

1. Query get product advanced reviews

- $urlKey : String - product url key
- $search : String - filter by keyword
- $pageSize : Int = 20 - page size
- $currentPage : Int = 1 - current page
- $sortBy : ReviewSortingType = default - enum: default, helpful, rating, latest, oldest, recommended, verified

```
query {
    products(filter: { url_key: { eq: $urlKey } }) {
        items {
            id
            uid
            sku
            advreview (
                search: $search
                pageSize: $pageSize
                currentPage: $currentPage
                sortBy: $sortBy
            ) {
                __typename
                totalRecords
                ratingSummary
                ratingSummaryValue
                recomendedPercent
                totalRecordsFiltered
                detailedSummary {
                    __typename
                    one
                    two
                    three
                    four
                    five
                }
                items {
                    __typename
                    review_id
                    created_at
                    answer
                    verified_buyer
                    is_recommended
                    detail_id
                    title
                    detail
                    nickname
                    like_about
                    not_like_about
                    guest_email
                    plus_review
                    minus_review
                    report_abuse
                    rating_votes {
                        __typename
                        vote_id
                        option_id
                        rating_id
                        review_id
                        percent
                        value
                        rating_code
                    }
                    images {
                        __typename
                        full_path
                        resized_path
                    }
                    comments {
                        __typename
                        id
                        review_id
                        status
                        message
                        nickname
                        email
                        created_at
                        updated_at
                    }
                }
            }
        }
    }
}

```

Example:

```
query {
    products(filter: { url_key: { eq: "pp-009238562599" } }) {
        items {
            id
            uid
            advreview (
                search: ""
                pageSize: 10
                currentPage: 1
                sortBy: helpful
            ) {
                __typename
                totalRecords
                ratingSummary
                ratingSummaryValue
                recomendedPercent
                totalRecordsFiltered
                detailedSummary {
                    __typename
                    one
                    two
                    three
                    four
                    five
                }
                items {
                    __typename
                    review_id
                    created_at
                    answer
                    verified_buyer
                    is_recommended
                    detail_id
                    title
                    detail
                    nickname
                    like_about
                    not_like_about
                    guest_email
                    plus_review
                    minus_review
                    report_abuse
                    rating_votes {
                        __typename
                        vote_id
                        option_id
                        rating_id
                        review_id
                        percent
                        value
                        rating_code
                    }
                    images {
                        __typename
                        full_path
                        resized_path
                    }
                    comments {
                        __typename
                        id
                        review_id
                        status
                        message
                        nickname
                        email
                        created_at
                        updated_at
                    }
                }
            }
        }
    }
}

```

2. Query review comments of a review

```
query {
  comments (
    review_id: Int!
    filter: ReviewCommentFilterInput
    pageSize: Int = 5
    currentPage: Int = 1
    sort: ReviewCommentSortInput
  ) {
      items {
        __typename
        id
        review_id
        status
        message
        nickname
        email
        parent_id
        created_at
        updated_at
      }
      total_count
      page_info {
          page_size
          current_page
          total_pages
      }
  }
}

```

3. Mutation submit like a review

```
mutation {
    likeReview (review_id : Int!)
}

```

4. Mutation submit unlike a review

```
mutation {
    unlikeReview (review_id : Int!)
}

```

5. Mutation submit report a review

```
mutation {
    reportReview (review_id : Int!)
}

```

6. Mutation submit product review with extra information

```
mutation {
    createProductAdvReview (
        input: {
            sku: String!
            nickname: String!
            summary: String!
            text: String!
            ratings: [ProductAdvReviewRatingInput!]!
            email: String
            advantages: String
            disadvantages: String
            images: [ReviewGalleryImageInput]
        }
    ) {
        review {
            review_id
            created_at
            answer
            verified_buyer
            is_recommended
            detail_id
            title
            detail
            nickname
            like_about
            not_like_about
            guest_email
            plus_review
            minus_review
            report_abuse
            rating_votes {
                __typename
                vote_id
                option_id
                rating_id
                review_id
                percent
                value
                rating_code
            }
            images {
                __typename
                full_path
                resized_path
            }
            comments {
                __typename
                id
                review_id
                status
                message
                nickname
                email
                created_at
                updated_at
            }
        }
    }
}

```

- ProductAdvReviewRatingInput:

```
input ProductAdvReviewRatingInput {
    rating_id: Int
    rating_name: String!
    value: Int!
}

```

rating\_name: A Rating Name: It is rating\_code in table rating. Example Default rating\_name: Quality, Value, Price, Rating value: A Rating number, from 1 to 5.

- ReviewGalleryImageInput:

```
input ReviewGalleryImageInput {
    src: String
}

```

7. Mutation post review comment

```
mutation {
    createComment (
        input : {
            review_id: Int!
            title: String
            message: String!
            nickname: String
            email: String
            parent_id: Int
            website: String
        }
    ) {
        comment {
            id
            review_id
            status
            message
            nickname
            email
            created_at
            updated_at
        }
    }
}

```

Example:

```
mutation {
    createComment (
        input: {
            review_id: 348,
            title: "Comment Title Graphql",
            message: "New message for review from Graphql",
            nickname: "Test User",
            email: "testuser@gmail.com"
        }
    ) {
        comment {
            id
            review_id
            status
            message
            nickname
            email
            created_at
            updated_at
        }
    }
}

```

8. Get logged in customer reviews

Query:

```
{
  customer {
    advreviews(
      filter: {
      }
      pageSize: 5
      currentPage: 1
    ) {
      items {
        review_id
        entity_pk_value
        created_at
        answer
        verified_buyer
        is_recommended
        detail_id
        title
        detail
        nickname
        like_about
        not_like_about
        guest_email
        plus_review
        minus_review
        report_abuse
        rating_votes {
          __typename
          vote_id
          option_id
          rating_id
          review_id
          percent
          value
          rating_code
        }
        images {
          __typename
          full_path
          resized_path
        }
        comments {
          __typename
          id
          review_id
          status
          message
          nickname
          email
          created_at
          updated_at
        }
      }
      page_info {
        page_size
        current_page
        total_pages
      }
      total_count
    }
  }
}

```

Filter fields:

```
review_id
created_at
title
detail
nickname
entity_pk_value

```

Sort fields:

```
review_id
created_at
title
detail
nickname
entity_pk_value

```

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.6% 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 ~41 days

Total

5

Last Release

1373d ago

### Community

Maintainers

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

---

Top Contributors

[![landofcoder](https://avatars.githubusercontent.com/u/194975?v=4)](https://github.com/landofcoder "landofcoder (28 commits)")[![devakeemtran](https://avatars.githubusercontent.com/u/152834843?v=4)](https://github.com/devakeemtran "devakeemtran (1 commits)")

### Embed Badge

![Health badge](/badges/landofcoder-module-product-reviews-graphql/health.svg)

```
[![Health](https://phpackages.com/badges/landofcoder-module-product-reviews-graphql/health.svg)](https://phpackages.com/packages/landofcoder-module-product-reviews-graphql)
```

###  Alternatives

[pharmaintelligence/hl7

HL7 PHP Library.

23200.4k](/packages/pharmaintelligence-hl7)

PHPackages © 2026

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