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 1w 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

17

—

LowBetter than 6% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity28

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://avatars.githubusercontent.com/u/13213261?v=4)[Vijay Rami](/maintainers/vijayrami)[@vijayrami](https://github.com/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

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.5M7](/packages/exsyst-swagger)[lucasdotvin/laravel-soulbscription

A straightforward interface to handle subscriptions and features consumption.

709209.3k](/packages/lucasdotvin-laravel-soulbscription)[pimax/fb-messenger-php

Facebook Messenger Bot PHP API

313188.5k2](/packages/pimax-fb-messenger-php)

PHPackages © 2026

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