PHPackages                             magelearn/link-product - 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. magelearn/link-product

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

magelearn/link-product
======================

Custom Link product relation for magento 2 supported by GraphQl

001PHP

Since Nov 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/vijayrami/Magelearn_LinkProduct)[ Packagist](https://packagist.org/packages/magelearn/link-product)[ RSS](/packages/magelearn-link-product/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Magelearn\_LinkProduct
======================

[](#magelearn_linkproduct)

Custom Link product relation for magento 2 supported by GraphQl.

It Also supports to import `custom link products` via Magento's Import CSV.

[![1_image](/assests/image-1.png)](/assests/image-1.png)

To Import `custom link products` via Magento's Import CSV,

Add New column `customlink_skus` and add linked Products SKU seprated by comma.

[![2_image](/assests/image-2.png)](/assests/image-2.png)

This extension includes all of the backend logic of relating the custom product type at backend. You will need to design the frontend component or use it with GraphQl for PWA to get these products information.

You can retrieve this custom type products data same as related products, up-sell products and cross-sell products data like below:

Just add `custom_link_products` in GraphQl Request.

```
{
  products(filter: { sku: { eq: "24-WB06" } }) {
    items {
      uid
      name
      related_products {
        uid
        name
      }
      upsell_products {
        uid
        name
      }
      crosssell_products {
        uid
        name
      }
      custom_link_products {
        uid
        name
      }
    }
  }
}

```

#### Usage

[](#usage)

```
public function __construct(
    ...
    \Magelearn\LinkProduct\Model\CustomLinkProduct $customlinkproduct,
    ....
) {
    ...
    $this->customlinkproduct = $customlinkproduct;
}

$product = $currentProduct;
return products
$customLinkItems = $this->customlinkproduct->getCustomLinkProducts($product);
//return product ids
$customLinkItemIds = $this->customlinkproduct->getCustomLinkProductIds($product);

```

#### Step 1

[](#step-1)

Using Composer (recommended)

composer require magelearn/link-product

#### Manually

[](#manually)

Download the extension Unzip the file

Create a folder {Magento 2 root}/app/code/Magelearn/LinkProduct Copy the content from the unzip folder Step 2 - Enable extension ("cd" to {Magento root} folder)

```
  php bin/magento module:enable Magelearn_LinkProduct
  php bin/magento set:upg
  php bin/magento set:d:c
  php bin/magento set:s:d -f
  php bin/magento c:c
  php bin/magento c:f

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor1

Top contributor holds 97.1% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9fbc17739c789569a8997978c60570db7936dfd338050c636ded61120669951e?d=identicon)[vijayrami](/maintainers/vijayrami)

---

Top Contributors

[![vijayrami](https://avatars.githubusercontent.com/u/13213261?v=4)](https://github.com/vijayrami "vijayrami (33 commits)")[![vijayrami-vt](https://avatars.githubusercontent.com/u/119410959?v=4)](https://github.com/vijayrami-vt "vijayrami-vt (1 commits)")

---

Tags

magentomagento2magento2-custom-productmagento2-extensionmagento2-extension-freemagento2-link-productmagento2-module

### Embed Badge

![Health badge](/badges/magelearn-link-product/health.svg)

```
[![Health](https://phpackages.com/badges/magelearn-link-product/health.svg)](https://phpackages.com/packages/magelearn-link-product)
```

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