PHPackages                             landofcoder/module-recent-viewed-products-graph-ql - 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. [API Development](/categories/api)
4. /
5. landofcoder/module-recent-viewed-products-graph-ql

ActiveMagento2-module[API Development](/categories/api)

landofcoder/module-recent-viewed-products-graph-ql
==================================================

Magento 2 Recent Viewed Products Graph Ql

1.0.0(3y ago)14.8kOSL-3.0PHP

Since Sep 27Pushed 3y agoCompare

[ Source](https://github.com/landofcoder/module-recent-viewed-product-graph-ql)[ Packagist](https://packagist.org/packages/landofcoder/module-recent-viewed-products-graph-ql)[ RSS](/packages/landofcoder-module-recent-viewed-products-graph-ql/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

module-recent-viewed-product-graph-ql
=====================================

[](#module-recent-viewed-product-graph-ql)

Magento 2 recent viewed products graph ql module. Allow submit recent viewed product ids, get recent viewed product collection

This module require admin enable recent viewed report in admin &gt; stores &gt; configuration &gt; General &gt; Report

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_RecentViewedGraphQl`
- 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-recent-viewed-products-graph-ql`
- enable the module by running `php bin/magento module:enable Lof_RecentViewedGraphQl`
- apply database updates by running `php bin/magento setup:upgrade`\*
- Flush the cache by running `php bin/magento cache:flush`

Grqph Ql Queries
----------------

[](#grqph-ql-queries)

1. Query - Get recent viewed products of current logged in customer

Query:

```
{
  recentViewedProducts(search: "", pageSize: 5, currentPage: 1) {
    total_count
    currentPage
    pageSize
    totalPages
    items {
      id
      sku
      uid
      name
      url_key
      price_range {
        minimum_price {
          regular_price {
            value
            currency
          }
        }
      }
      image {
        url
        label
      }
    }
  }
}

```

search: string - search by keyword

2. Mutation - Submit recent viewed product ids of current logged in customer

Query:

```
mutation {
  recentViewedProducts(product_ids: [Int]!)
  {
    message
    total_count
  }
}

```

product\_ids: \[Int\]! - required field, array of product ids

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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

Unknown

Total

1

Last Release

1330d 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 (2 commits)")

---

Tags

magento2-extensionrecent-viewed-products-graph-ql

### Embed Badge

![Health badge](/badges/landofcoder-module-recent-viewed-products-graph-ql/health.svg)

```
[![Health](https://phpackages.com/badges/landofcoder-module-recent-viewed-products-graph-ql/health.svg)](https://phpackages.com/packages/landofcoder-module-recent-viewed-products-graph-ql)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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