PHPackages                             rapidez/magento2-compadre - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rapidez/magento2-compadre

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rapidez/magento2-compadre
=========================

Some Magento code to improve the Rapidez experience

1.2.1(7mo ago)03.4k31PHPPHP ^8.0.2|^8.1CI passing

Since Jan 8Pushed 7mo ago3 watchersCompare

[ Source](https://github.com/rapidez/magento2-compadre)[ Packagist](https://packagist.org/packages/rapidez/magento2-compadre)[ Docs](https://rapidez.io)[ RSS](/packages/rapidez-magento2-compadre/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (12)Versions (14)Used By (1)

Magento Rapidez Compadre
========================

[](#magento-rapidez-compadre)

This **Magento Module** will allow Rapidez to support more functionalities.

Current functionality
---------------------

[](#current-functionality)

### ProductStockItem

[](#productstockitem)

The ProductStockItem type is added to the ProductInterface in the GraphQL definition. Allowing you to retrieve the stock information of the product:

```
    product {
        id,
        sku,
        name,
        type_id,
        url_key,
        url_suffix,
+       stock_item {
+           max_sale_qty
+           min_sale_qty
+           qty_increments
+           in_stock
+      }
    }
```

### Sales rule labels

[](#sales-rule-labels)

The SalesRuleLabel type is added to the CartItemInterface in the GraphQL definition. Allowing you to retrieve the sales rule labels that are applied to a quote item:

```
    items {
        id
        quantity
+       sales_rule_labels {
+           name
+           description
+           store_label
+           discount_amount
+           from_date
+           to_date
+       }
    }
```

### Login as Customer

[](#login-as-customer)

When enabled and [rapidez/login-as-customer](https://github.com/rapidez/login-as-customer) is installed the admin "Log In As Customer" button will work with Rapidez as well.

### Other

[](#other)

And it extends Magento functionality in order to facilitate file upload product options via GraphQL

Installation
------------

[](#installation)

In your Magento installation run

```
composer require rapidez/magento2-compadre
bin/magento module:enable Rapidez_Compadre
```

Configuration
-------------

[](#configuration)

Configuration options are available under `Stores > Configuration > Rapidez > Config`

Here you can configure what extra fields should be exposed in the GraphQL ProductStockItem, fields not exposed will be `null`.

Release instructions
--------------------

[](#release-instructions)

If GraphQL changes have been made src/etc/module.xml must be updated with the new release version number. This way we can easily detect which fields should be available in GraphQL for use. As Introspection is disabled outside developer mode.

License
-------

[](#license)

GNU General Public License v3. Please see [License File](LICENSE) for more information.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance64

Regular maintenance activity

Popularity23

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~93 days

Total

13

Last Release

220d ago

Major Versions

0.1.1 → 1.0.02024-09-13

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/72222911?v=4)[Rapidez](/maintainers/rapidez)[@rapidez](https://github.com/rapidez)

---

Top Contributors

[![indykoning](https://avatars.githubusercontent.com/u/15870933?v=4)](https://github.com/indykoning "indykoning (9 commits)")[![BobWez98](https://avatars.githubusercontent.com/u/23509926?v=4)](https://github.com/BobWez98 "BobWez98 (6 commits)")[![Jade-GG](https://avatars.githubusercontent.com/u/32514269?v=4)](https://github.com/Jade-GG "Jade-GG (4 commits)")[![royduin](https://avatars.githubusercontent.com/u/1703233?v=4)](https://github.com/royduin "royduin (1 commits)")

---

Tags

rapidez

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/rapidez-magento2-compadre/health.svg)

```
[![Health](https://phpackages.com/badges/rapidez-magento2-compadre/health.svg)](https://phpackages.com/packages/rapidez-magento2-compadre)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

69344.4k](/packages/run-as-root-magento2-prometheus-exporter)[faonni/module-price

Rounding Price to Prettier Value for Multi-Currency Stores.

63120.9k](/packages/faonni-module-price)[graycore/magento2-graphql-introspection-cache

1015.2k](/packages/graycore-magento2-graphql-introspection-cache)[doofinder/doofinder-magento2

Doofinder module for Magento 2

13204.0k1](/packages/doofinder-doofinder-magento2)

PHPackages © 2026

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