PHPackages                             landofcoder/module-customer-membership-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. landofcoder/module-customer-membership-graph-ql

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

landofcoder/module-customer-membership-graph-ql
===============================================

Magento 2 Customer Membership Graph Ql

1.0.1(3y ago)08GPL-3.0PHP

Since Aug 16Pushed 3y agoCompare

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

READMEChangelog (2)DependenciesVersions (5)Used By (0)

Mage2 Module Lof CustomerMembershipGraphQl
==========================================

[](#mage2-module-lof-customermembershipgraphql)

```
``landofcoder/module-customer-membership-graph-ql``

```

- [Main Functionalities](#markdown-header-main-functionalities)
- [Installation](#markdown-header-installation)
- [Configuration](#markdown-header-configuration)
- [Specifications](#markdown-header-specifications)
- [Attributes](#markdown-header-attributes)

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

[](#main-functionalities)

Magento 2 Customer Membership Graph Ql

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

[](#installation)

\* = in production please use the `--keep-generated` option

### Type 1: Zip file

[](#type-1-zip-file)

- Unzip the zip file in `app/code/Lof`
- Enable the module by running `php bin/magento module:enable Lof_CustomerMembershipGraphQl`
- Apply database updates by running `php bin/magento setup:upgrade`\*
- Flush the cache by running `php bin/magento cache:flush`

### Type 2: Composer

[](#type-2-composer)

- Make the module available in a composer repository for example:
    - private repository `repo.magento.com`
    - public repository `packagist.org`
    - public github repository as vcs
- Add the composer repository to the configuration by running `composer config repositories.repo.magento.com composer https://repo.magento.com/`
- Install the module composer by running `composer require landofcoder/module-customer-membership-graph-ql`
- enable the module by running `php bin/magento module:enable Lof_CustomerMembershipGraphQl`
- apply database updates by running `php bin/magento setup:upgrade`\*
- Flush the cache by running `php bin/magento cache:flush`

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

[](#configuration)

Specifications
--------------

[](#specifications)

- GraphQl Endpoint

    - MembershipProducts
- GraphQl Endpoint

    - MyMembership
- GraphQl Endpoint

    - CancelMembership
- GraphQl Endpoint

    - MembershipTransaction

Attributes
----------

[](#attributes)

Example Graph Ql Query
----------------------

[](#example-graph-ql-query)

1. Query Membership Products:

```
{
  membershipProducts(
    filters: {},
    pageSize: 10,
    currentPage: 1,
    sort:{
      created_at: DESC
    }
  ){
    items{
      entity_id
      sku
      name
      status
      duration {
        record_id
        membership_duration
        membership_unit
        membership_price
        membership_order
        initialize
      }
      url_key
      customer_group
      featured_package
      short_description
      price
      final_price
      created_at
      store_id
    }
    total_count
  }
}

```

2. Query My Membership (should logged in customer account before):

```
{
	myMembership{
    membership_id
    group_id
    name
    duration
    price
    expiration_date
    created_at
    status
    product_id
    item_id
    product_options
  }
}

```

3. Query My Membership Transaction (should logged in customer account before):

```
{
	membershipTransaction(
    filters: {},
    pageSize: 10,
    currentPage: 1,
    sort:{
      created_at: DESC
    }
  ){
    items{
      	transaction_id
      	name
      	package
      	amount
       	duration
      	duration_unit
        created_at
      	product_id
        item_id
    }

    total_count
  }
}

```

4. Query Mutation Cancel Membership Request (should logged in customer account before):

```
mutation{
  cancelMembership(customer_comment: "I want cancel my membership!")
}

```

5. Query Mutation add membership product to cart (should logged in customer account before):

```
mutation {
  addMembershipProductsToCart(
        input: {
            cart_id: String
            cart_items: [{
              data : {
                sku: String,
                quantity: Int
              },
              duration: String!
            }]
        }
    ) {
        cart {
            items {
                ... on SimpleCartItem {
                    product {
                        name
                        sku
                    }
                    quantity
                    customizable_options {
                        label
                        type
                        values {
                            label
                            value
                            price {
                                value
                            }
                        }
                    }
                }
            }
        }
    }
}

```

`duration: String!`

example:

```
duration: "1|month"

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.7% 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 ~598 days

Total

2

Last Release

1138d 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 (18 commits)")[![fergusdinh](https://avatars.githubusercontent.com/u/99378450?v=4)](https://github.com/fergusdinh "fergusdinh (1 commits)")

---

Tags

customer-membershipgraphqlmagentomagento2magento2-module

### Embed Badge

![Health badge](/badges/landofcoder-module-customer-membership-graph-ql/health.svg)

```
[![Health](https://phpackages.com/badges/landofcoder-module-customer-membership-graph-ql/health.svg)](https://phpackages.com/packages/landofcoder-module-customer-membership-graph-ql)
```

###  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)
