mageplaza / module-membership-graphql
mageplaza/module-membership-graphql
Magento 2 Membership Graphql Extension
Magento 2 Membership GraphQL (Support PWA)
Magento 2 Membership GraphQL is a part of Mageplaza Membership extension that adds GraphQL features. Mageplaza Magento 2 Membership GraphQL (PWA) supports getting and pushing data on the website with GraphQL, along with PWA compatibility support.
Mageplaza Membership for Magento 2 is an effective tool to create customer memberships on the online store that increase customer engagement and loyalty.
With Mageplaza Membership, the store admin can create different membership levels, such as bronze, silver, and gold. The store admin can assign specific products to each level of membership. Customers will be classified into different membership levels based on the products they buy. The assigned products are not limited to any specific type, so it’s flexible for the store owner to draw customers to a certain product that needs to be promoted.
When customers are members of a membership group, they will have specific privileges or benefits. The benefits are ruled out by store owners from the admin backend, which can be discount coupons or free shipping codes. The store admin can add as many benefits as they want to encourage customers to purchase more to level up their membership, such as from silver to gold.
Customers can also upgrade their membership level by paying a fixed price for a higher membership package or applying discounts to save money. To motivate customers to take a longer membership time, the store can offer different price levels corresponding to the membership duration. The rule is the longer membership is, the lower the price customers have to pay. For example, for the Gold membership package, $300 for 3 months, $200 for 6 months, and $100 for 12 months.
It’s easy to customize the membership cards. You can change the feature images, the background of the cards, and add the noticeable labels to attract customers.
1. How to install
Run the following command in Magento 2 root folder:
composer require mageplaza/module-membership-graphql
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
Note:
Magento 2 Membership GraphQL requires installing Mageplaza Membership in your Magento installtion.
2. How to use
Mageplaza's Membership GraphQL supports getting Membership Page information, Upgrade Page, Membership products, membership and transaction information of customers, adding membership products to cart, and getting cart information.
To start working with Membership GraphQL in Magento, complete the following requirements:
- Use Magento 2.3.x. Return your site to developer mode.
- Install chrome extension (currently does not support other browsers)
- Set GraphQL endpoint as
http://<magento2-2-server>/graphin url box. Click on Set endpoint. (e.g., `http://develop.mageplaza.com/graphql/ce232/graph). - Refer to the GraphQL requests we support here.
3. Devdocs
Click on Run in Postman to add these collections to your workspace quickly.

4. Contribute to this module
Feel free to Fork and contribute to this module.
You can create a pull request, so we will merge your changes in the main branch.
5. Get support
- Feel free to contact us if you have any question.
- If you find this post helpful, please give it a Star

No dependencies declared
This package's composer.json doesn't declare any required, suggested, replaced, or conflicting packages.
Compatibility
Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.
Code Quality
Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.
Static analysis
Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.
PHPStan
Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.
Tests
Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.
Unit tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Integration tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Security
Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.
More from mageplaza
View vendorTurn an existing module into recurring revenue.
If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.