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)3375[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 2w ago

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 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

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

2162d 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

[mollie/magento2

Mollie Payment Module for Magento 2

1121.8M12](/packages/mollie-magento2)[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8044.6M40](/packages/smile-elasticsuite)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68353.9k](/packages/run-as-root-magento2-prometheus-exporter)[graycore/magento2-graphql-introspection-cache

1016.3k](/packages/graycore-magento2-graphql-introspection-cache)[yireo/magento2-extensionchecker

Scan the code of a Magento module

96160.1k3](/packages/yireo-magento2-extensionchecker)[opengento/module-category-import-export

This module add the capability to import and export the categories from the back-office.

1310.2k1](/packages/opengento-module-category-import-export)

PHPackages © 2026

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