PHPackages                             yireo/magento2-byattribute-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. yireo/magento2-byattribute-graph-ql

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

yireo/magento2-byattribute-graph-ql
===================================

Show any listing of any product attribute in GraphQL

0.1.1(5y ago)33751[1 PRs](https://github.com/yireo/Yireo_ByAttributeGraphQl/pulls)OSL-3.0PHPPHP &gt;=7.0.0

Since Jun 15Pushed 3y ago1 watchersCompare

[ Source](https://github.com/yireo/Yireo_ByAttributeGraphQl)[ Packagist](https://packagist.org/packages/yireo/magento2-byattribute-graph-ql)[ Docs](https://www.yireo.com/software/magento-extensions/byattribute2)[ RSS](/packages/yireo-magento2-byattribute-graph-ql/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (7)Versions (4)Used By (0)

Yireo ByAttribute GraphQL for Magento 2
=======================================

[](#yireo-byattribute-graphql-for-magento-2)

This Magento 2 extension adds a GraphQL endpoint for accessing product attributes via GraphQL. This requires at least Magento 2.3 or higher.

To install this module, run:

```
composer require yireo/magento2-byattribute-graph-ql
./bin/magento module:enable Yireo_ByAttributeGraphQl

```

### Sample GraphQL queries

[](#sample-graphql-queries)

Here are some sample GraphQL queries to show the usage of this extension:

```
{
  productAttribute(code:"material") {
    id
    code
    label
    default_value
    options {
      value
      label
      product_count
    }
  }
}
```

Or if you want to return less information (and include a category filter):

```
{
  productAttribute(code:"color", category_id: 42) {
    id
    options {
      value
    }
  }
}
```

TODO
====

[](#todo)

- Cache vital parts of product count
- Refactor `ProductCounter` and split it up in smaller classes

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

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

Total

2

Last Release

2112d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1373981?v=4)[Yireo](/maintainers/yireo)[@yireo](https://github.com/yireo)

---

Top Contributors

[![jissereitsma](https://avatars.githubusercontent.com/u/7670482?v=4)](https://github.com/jissereitsma "jissereitsma (15 commits)")

---

Tags

magento2-modulemagentocomposer-installer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yireo-magento2-byattribute-graph-ql/health.svg)

```
[![Health](https://phpackages.com/badges/yireo-magento2-byattribute-graph-ql/health.svg)](https://phpackages.com/packages/yireo-magento2-byattribute-graph-ql)
```

###  Alternatives

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8044.5M33](/packages/smile-elasticsuite)[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[yireo/magento2-googletagmanager2

Add Google Tag Manager to Magento

167930.4k5](/packages/yireo-magento2-googletagmanager2)[yireo/magento2-checkouttester2

Checkout Tester for Magento 2

93477.4k1](/packages/yireo-magento2-checkouttester2)[yireo/magento2-emailtester2

Preview transactional emails and test send them in your backend

33394.9k](/packages/yireo-magento2-emailtester2)[yireo/magento2-extensionchecker

Scan the code of a Magento module

96151.6k3](/packages/yireo-magento2-extensionchecker)

PHPackages © 2026

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