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

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

landofcoder/module-product-attributes-graphql
=============================================

Magento 2 Product Attributes GraphQl extension

1.0.0(3y ago)03OSL-3.0PHP

Since Aug 17Pushed 3y agoCompare

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

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

Magento 2 Module Lof\_ProductAttributesGraphQl
==============================================

[](#magento-2-module-lof_productattributesgraphql)

`landofcoder/module-product-attributes-graphql`

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

[](#main-functionalities)

Magento 2 product attributes graphql extension

Queries
-------

[](#queries)

1. Query get product attributes

- $sku : String - product sku

```
query {
    products(filter: {sku: $sku }) {
    items {
        sku
        additionalAttributes {
            total_count
            items {
                id
                code
                label
                value
                }
            }
        }
    total_count
    page_info {
      page_size
    }
  }
}

```

Example Response:

```
{
    "data": {
        "products": {
            "items": [
                {
                    "sku": "SKUE81588-Red",
                    "additionalAttributes": {
                        "total_count": 9,
                        "items": [
                            {
                                "id": 93,
                                "code": "color",
                                "label": "Color",
                                "value": "Green"
                            },
                            {
                                "id": 152,
                                "code": "size",
                                "label": "Size",
                                "value": "M"
                            },
                            {
                                "id": 153,
                                "code": "material",
                                "label": "Material",
                                "value": "Leather"
                            },
                            {
                                "id": 180,
                                "code": "climate",
                                "label": "Climate",
                                "value": "Hot"
                            },
                            {
                                "id": 181,
                                "code": "new",
                                "label": "New",
                                "value": "Yes"
                            },
                            {
                                "id": 182,
                                "code": "pattern",
                                "label": "Pattern",
                                "value": "Color-Blocked"
                            },
                            {
                                "id": 184,
                                "code": "style_bottom",
                                "label": "Style Bottom",
                                "value": "Compression"
                            },
                            {
                                "id": 186,
                                "code": "collar",
                                "label": "Collar",
                                "value": "Blue"
                            },
                            {
                                "id": 187,
                                "code": "season",
                                "label": "Season",
                                "value": "Summer"
                            }
                        ]
                    }
                }
            ],
            "total_count": 1,
            "page_info": {
                "page_size": 20
            }
        }
    }
}

```

2. Query get all visible and fiterable product attributes and their options

```
query {
    getVisibleAttributes {
      total_count
      items {
          attribute_code
          attribute_label
          total_count
          options{
              label
              value
          }
      }
  }
}

```

Example Response:

```
{
    "data": {
        "getVisibleAttributes": {
            "total_count": 3,
            "items": [
                {
                    "attribute_code": "new",
                    "attribute_label": "New",
                    "total_count": 2,
                    "options": [
                        {
                            "label": "Yes",
                            "value": "1"
                        },
                        {
                            "label": "No",
                            "value": "0"
                        }
                    ]
                },

                {
                    "attribute_code": "season",
                    "attribute_label": "Season",
                    "total_count": 4,
                    "options": [
                        {
                            "label": "Autumn",
                            "value": "253"
                        },
                        {
                            "label": "Spring",
                            "value": "254"
                        },
                        {
                            "label": "Summer",
                            "value": "251"
                        },
                        {
                            "label": "Winter",
                            "value": "252"
                        }
                    ]
                },
                {
                    "attribute_code": "sleeve",
                    "attribute_label": "Sleeve Length",
                    "total_count": 4,
                    "options": [
                        {
                            "label": "Half Sleeve",
                            "value": "233"
                        },
                        {
                            "label": "Long Sleeve",
                            "value": "234"
                        },
                        {
                            "label": "Short Sleeve",
                            "value": "231"
                        },
                        {
                            "label": "Sleeveless",
                            "value": "232"
                        }
                    ]
                }
            ]
        }
    }
}

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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

1371d 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 (3 commits)")[![khanhnhu2512](https://avatars.githubusercontent.com/u/58614545?v=4)](https://github.com/khanhnhu2512 "khanhnhu2512 (2 commits)")

---

Tags

get-product-attribute-graphqlgraphqlmagento2pwa-studio

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/landofcoder-module-product-attributes-graphql/health.svg)](https://phpackages.com/packages/landofcoder-module-product-attributes-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)[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)
