PHPackages                             landofcoder/module-marketplace-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. [API Development](/categories/api)
4. /
5. landofcoder/module-marketplace-graphql

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

landofcoder/module-marketplace-graphql
======================================

Magento 2 Marketplace GraphQl extension

1.0.5(2y ago)002OSL-3.0PHP

Since Jun 3Pushed 2y agoCompare

[ Source](https://github.com/landofcoder/module-marketplace-graphql)[ Packagist](https://packagist.org/packages/landofcoder/module-marketplace-graphql)[ RSS](/packages/landofcoder-module-marketplace-graphql/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (18)Used By (0)

Mage2 Module Lof MarketplaceGraphQl
===================================

[](#mage2-module-lof-marketplacegraphql)

```
``landofcoder/module-marketplace-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 marketplace graphql extension

Marketplace Addons GraphQL Extensions
-------------------------------------

[](#marketplace-addons-graphql-extensions)

- [Seller Coupon Code](https://github.com/landofcoder/module-seller-coupon-graph-ql)
- [Seller Chat](https://github.com/landofcoder/module-seller-chat-graphql)
- [Seller Split Cart](https://github.com/landofcoder/module-split-cart-graph-ql)
- [Seller Product List - Products Slider](https://github.com/landofcoder/module-seller-product-list-graph-ql)
- [Seller Blog](https://github.com/landofcoder/module-seller-blog-graph-ql)
- [Seller Product](https://github.com/landofcoder/module-marketplace-seller-product-graph-ql)
- [Seller Settings](https://github.com/landofcoder/module-marketplace-seller-settings-graph-ql)
- [Seller Delivery Time Slots](https://github.com/landofcoder/module-seller-delivery-time-slot-graph-ql)
- Comming soon...

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_MarketplaceGraphQl`
- 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-marketplace-graphql`
- enable the module by running `php bin/magento module:enable Lof_MarketplaceGraphQl`
- apply database updates by running `php bin/magento setup:upgrade`\*
- Flush the cache by running `php bin/magento cache:flush`

### TODO

[](#todo)

- Refactor Graphql queries
- Refactor Resolvers
- Add documendation for Graphql queries

Queries
-------

[](#queries)

1. Get Seller Profile Info By Url

```
{
    sellerByUrl(
        seller_url: String! @doc(description: "Seller Url Key")
        get_other_info: Boolean = false @doc(description: "Get other info: reviews, ratings, total sales, vacation")
        get_products: Boolean = false @doc(description: "Get Latest Products")
    ) {
        address
        banner_pic
        city
        company_description
        company_locality
        contact_number
        country
        customer_id
        email
        gplus_active
        gplus_id
        group
        image
        name
        page_layout
        region
        return_policy
        sale
        seller_id
        shipping_policy
        shop_title
        status
        store_id
        thumbnail
        seller_rates {
            items {
                created_at
                customer_id
                detail
                email
                nickname
                rate1
                rate2
                rate3
                rating_id
                seller_id
                status
                title
            }
            total_count
        }
  }
}

```

Example:

```
{
  sellerByUrl(seller_url: "seller1") {
    shop_title
    thumbnail
    logo_pic
    banner_pic
    url_key
    telephone
    product_count
    total_sold
    offers
    benefits
    product_shipping_info
    prepare_time
    response_ratio
    response_time
    creation_time
  }
}

```

2. Get Seller Profile By ID

```
{
    sellerById(
        seller_id: Int! @doc(description: "Seller id")
        get_other_info: Boolean = false @doc(description: "Get other info: reviews, ratings, total sales, vacation")
        get_products: Boolean = false @doc(description: "Get Latest Products")
    ) {
        address
        banner_pic
        city
        company_description
        company_locality
        contact_number
        country
        customer_id
        email
        gplus_active
        gplus_id
        group
        image
        name
        page_layout
        region
        return_policy
        sale
        seller_id
        shipping_policy
        shop_title
        status
        store_id
        thumbnail
        seller_rates {
            items {
                created_at
                customer_id
                detail
                email
                nickname
                rate1
                rate2
                rate3
                rating_id
                seller_id
                status
                title
            }
            total_count
        }
  }
}

```

Example:

```
{
  sellerById(seller_id: 1) {
    shop_title
    thumbnail
    logo_pic
    banner_pic
    url_key
    telephone
    product_count
    total_sold
    offers
    benefits
    product_shipping_info
    prepare_time
    response_ratio
    response_time
    creation_time
  }
}

```

3. Get List Sellers with Filter options

```
{
    sellers (
        filter: SellerFilterInput,
        pageSize: Int = 20,
        currentPage: Int = 1,
        sort: SellerSortInput
    ) {
        total_count
        items {
            seller_rates {
                items {
                    created_at
                    customer_id
                    detail
                    email
                    nickname
                    rate1
                    rate2
                    rate3
                    rating_id
                    seller_id
                    status
                    title
                }
                total_count
            }
            sale
            seller_id
            name
            thumbnail
            country
            address
            group
            products {
                items {
                    sale
                    id
                    name
                    url_key
                    rating_summary
                    sku
                    image {
                        url
                        label
                    }
                    description {
                        html
                    }
                    short_description {
                        html
                    }
                    product_brand
                    price_range {
                        maximum_price {
                            discount {
                                amount_off
                                percent_off
                            }
                            final_price {
                                currency
                                value
                            }
                            regular_price {
                                currency
                                value
                            }
                        }
                        minimum_price {
                            discount {
                                amount_off
                                percent_off
                            }
                            final_price {
                                currency
                                value
                            }
                            regular_price {
                                currency
                                value
                            }
                        }
                    }
                    price {
                        regularPrice {
                            amount {
                                currency
                            }
                        }
                    }
                }
                total_count
            }
        }
    }
}

```

4. Get Seller Collection (Groups)

```
{
    sellerCollection(
        filter: SellerGroupFilterInput,
        pageSize: Int = 5,
        currentPage: Int = 1,
        sort: SellerGroupSortInput
    ) {
        total_count
        items {
            group_id
            name
            url_key
            position
        }
    }
}

```

5. Filter products by seller ID

```
fragment ShopProduct on ProductInterface {
  id
  rating_summary
  description {
    html
  }
  name
  image {
    url
  }
  url_key
  price_range {
    minimum_price {
      regular_price {
        value
        currency
      }
    }
    maximum_price {
      discount {
        percent_off
      }
      final_price {
        value
        currency
      }
      regular_price {
        value
      }
    }
  }
}

fragment PageInfo on SearchResultPageInfo {
  current_page
  page_size
  total_pages
}

productsBySellerId(
    seller_id: Int!
    search: String = ""
    filter: ProductAttributeFilterInput
    pageSize: Int = 20
    currentPage: Int = 1
    sort: ProductAttributeSortInput
  ) {
    items {
      ...ShopProduct
    }
    page_info {
      ...PageInfo
    }
    total_count
}

```

6. Get Seller Products by Seller Url

Example: get products of seller "seller1"

```
{
  productsBySellerUrl(
    seller_url: "seller1"
    search: ""
    filter: {}
    pageSize: 1
    currentPage: 1
  ) {
    items {
      id
      name
      url_key
      rating_summary
      sku
      stock_status
      image {
        url
        label
      }
      description {
        html
      }
      short_description {
        html
      }
      price {
        regularPrice {
          amount {
            currency
          }
        }
      }
    }
    page_info {
      page_size
      current_page
      total_pages
    }
    total_count
  }
}

```

7. Get Seller Information on products query

Example:

```
{
  products(filter: { sku: { eq: "AAAU_B2C-W713327" } }) {
    items {
      name
      sku
      url_key
      stock_status
      price_range {
        minimum_price {
          regular_price {
            value
            currency
          }
        }
      }
      seller {
        shop_title
        thumbnail
        url_key
        telephone
        product_count
        total_sold
        offers
        benefits
        product_shipping_info
        prepare_time
        response_ratio
        response_time
        creation_time
      }
    }
    total_count
    page_info {
      page_size
    }
  }
}

```

8. Mutation Registrer Seller

```
mutation {
  registerSeller(
    input: {
        seller: {
            group_id: String
            url_key: String!
        },
        customer: {
            firstname: String!
            lastname: String!
            email: String!
            address: {
                region_id: String
                country_id: String!
                city: String!
                street: String!
                company: String
                telephone: String!
                postcode: String!
            }
        },
        password: String!
    }
  ) {
    code
    message
  }
}

```

9. Mutation Become Seller - required customer logged in

```
mutation {
  becomeSeller(
    input: {
        group_id: String
        url_key: String!
    }
  ) {
    code
    message
  }
}

```

10. Mutation Review Seller - required customer logged in

```
mutation {
  reviewSeller(
    input: {
        seller_url  : String!
        rate1  : Int!
        rate2  : Int!
        rate3  : Int!
        nickname  : String!
        email  : String!
        title  : String!
        detail  : String!
    }
  ) {
    code
    message
  }
}

```

11. Mutation Customer send contact to seller - required customer logged in

```
mutation {
  customerSendMessage(
    input: {
        seller_url  : String!
        subject  : String
        content  : String!
    }
  ) {
    code
    message
  }
}

```

12. Mutation Customer send reply to a message - required customer logged in

```
mutation {
  customerReplyMessage(
    input: {
        message_id  : Int!
        content  : String!
    }
  ) {
    code
    message
  }
}

```

13. Query get messages of logged in customer - required customer logged in

```
{
    sellerMessages(
        filter: SellerMessageFilterInput
        pageSize: Int = 20
        currentPage: Int = 1
        sort: SellerMessageSortInput
    ) {
        total_count
        items {
            message_id
            description
            subject
            sender_email
            sender_name
            created_at
            status
            is_read
            sender_id
            owner_id
            receiver_id
            seller_send
            details (
                pageSize: Int = 20
                currentPage: Int = 1
            ) {
                items {
                    content
                    sender_name
                    sender_email
                    receiver_name
                    is_read
                    created_at
                }
                total_count
                page_info {
                    ...PageInfo
                }
            }
        }
        page_info {
            ...PageInfo
        }
    }
}

```

14. Query Get Seller Info of Logged in Customer - required customer logged in

```
{
  customer {
    firstname
    lastname
    suffix
    email
    addresses {
      firstname
      lastname
      street
      city
      region {
        region_code
        region
      }
      postcode
      country_code
      telephone
    }
    seller {
        shop_title
        thumbnail
        logo_pic
        banner_pic
        url_key
        telephone
        product_count
        total_sold
        offers
        benefits
        product_shipping_info
        prepare_time
        response_ratio
        response_time
        creation_time
    }
  }
}

```

15. Get Seller Ratings List by Seller Url Key

Query:

```
{
  sellerRatings(
    seller_url: "seller1"
    filter: {}
    pageSize: 5
    currentPage: 1
    sort: { created_at: DESC }
  ) {
    items {
      rating_id
      rate1
      rate2
      rate3
      rate4
      rate5
      rating
      title
      status
      detail
      nickname
      created_at
      verified_buyer
      is_recommended
      is_hidden
      answer
      admin_note
      like_about
      not_like_about
      guest_email
      plus_review
      minus_review
      report_abuse
      country
    }
    total_count
    page_info {
      page_size
      current_page
      total_pages
    }
  }
}

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 74.7% 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 ~124 days

Recently: every ~154 days

Total

6

Last Release

773d 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 (59 commits)")[![msgchinh](https://avatars.githubusercontent.com/u/45973976?v=4)](https://github.com/msgchinh "msgchinh (15 commits)")[![devakeemtran](https://avatars.githubusercontent.com/u/152834843?v=4)](https://github.com/devakeemtran "devakeemtran (2 commits)")[![fergusdinh](https://avatars.githubusercontent.com/u/99378450?v=4)](https://github.com/fergusdinh "fergusdinh (2 commits)")[![thomasnguyen244](https://avatars.githubusercontent.com/u/160587089?v=4)](https://github.com/thomasnguyen244 "thomasnguyen244 (1 commits)")

---

Tags

magento2-graphqlmagento2-marketplacemagento2-multi-vendorpwapwa-studio

### Embed Badge

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

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

###  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)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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