PHPackages                             ecwhim/module-canonical-url-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. ecwhim/module-canonical-url-graph-ql

ActiveMagento2-module

ecwhim/module-canonical-url-graph-ql
====================================

N/A

1.0.0(3y ago)00OSL-3.0PHP

Since Oct 24Pushed 5mo agoCompare

[ Source](https://github.com/ecwhim/magento2-canonical-url-graph-ql)[ Packagist](https://packagist.org/packages/ecwhim/module-canonical-url-graph-ql)[ RSS](/packages/ecwhim-module-canonical-url-graph-ql/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

Canonical URL GraphQl module for Magento 2 by Ecwhim
====================================================

[](#canonical-url-graphql-module-for-magento-2-by-ecwhim)

This module provides support of Magento GraphQL for [Magento 2 Canonical URL Extension](https://www.ecwhim.com/magento-2-canonical-url-extension.html) by Ecwhim.

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

[](#installation)

You can install the module in the following ways:

1. [Install the module using Composer via packagist.com](#install-the-module-using-composer-via-packagistcom).
2. [Download package from github.com](#download-package-from-githubcom).

### Install the module using Composer via packagist.com

[](#install-the-module-using-composer-via-packagistcom)

1. Log in to your Magento server as, or switch to, the file system owner.
2. Navigate to your Magento project directory.
3. Get the latest version of the module:

```
composer require ecwhim/module-canonical-url-graph-ql
```

4. [Enable the module](https://docs.ecwhim.com/Installation/#enable-the-extension).

### Download package from github.com

[](#download-package-from-githubcom)

1. Download the latest version of the [package from github](https://github.com/ecwhim/magento2-canonical-url-graph-ql).
2. Extract the package to the `/app/code/Ecwhim/CanonicalUrlGraphQl` directory.
3. [Enable the module](https://docs.ecwhim.com/Installation/#enable-the-extension).

How to use
----------

[](#how-to-use)

### CategoryInterface attribute

[](#categoryinterface-attribute)

The following table defines the CategoryInterface attribute added by our extension.

ATTRIBUTEDATA TYPEDESCRIPTIONecw\_canonical\_urlStringThe absolute canonical URL.#### Example Usage

[](#example-usage)

The following query shows how to get the canonical URL for a category:

**Request:**

```
{
    categoryList(filters: {ids: {eq: "14"}}){
        id
        name
        ecw_canonical_url
    }
}
```

**Response:**

```
{
    "data": {
        "categoryList": [
            {
                "id": 14,
                "name": "Jackets",
                "ecw_canonical_url": "https://example.com/men/tops-men/jackets-men.html"
            }
        ]
    }
}
```

### CmsPage attribute

[](#cmspage-attribute)

The following table defines the CmsPage attribute added by our extension.

ATTRIBUTEDATA TYPEDESCRIPTIONecw\_canonical\_urlStringThe absolute canonical URL.#### Example Usage

[](#example-usage-1)

The following query shows how to get the canonical URL for a CMS page:

**Request:**

```
{
    cmsPage(identifier: "customer-service") {
        identifier
        title
        ecw_canonical_url
    }
}
```

**Response:**

```
{
    "data": {
        "cmsPage": {
            "identifier": "customer-service",
            "title": "Customer Service",
            "ecw_canonical_url": "https://example.com/customer-service"
        }
    }
}
```

### ProductInterface attribute

[](#productinterface-attribute)

The following table defines the ProductInterface attribute added by our extension.

ATTRIBUTEDATA TYPEDESCRIPTIONecw\_canonical\_urlStringThe absolute canonical URL.#### Example Usage

[](#example-usage-2)

The following query shows how to get the canonical URL for a product:

**Request:**

```
{
    products(filter: { sku: { eq: "24-MB01" } }) {
        items {
            name
            sku
            ecw_canonical_url
        }
    }
}
```

**Response:**

```
{
    "data": {
        "products": {
            "items": [
                {
                    "name": "Joust Duffle Bag",
                    "sku": "24-MB01",
                    "ecw_canonical_url": "https://example.com/joust-duffle-bag.html"
                }
            ]
        }
    }
}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance48

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

1296d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b63557f2f9d89a3ce75687d08e5e8687d433c54e41849fa95291c4db16ef4265?d=identicon)[ecwhim](/maintainers/ecwhim)

---

Top Contributors

[![ecwhimls](https://avatars.githubusercontent.com/u/62589973?v=4)](https://github.com/ecwhimls "ecwhimls (2 commits)")

### Embed Badge

![Health badge](/badges/ecwhim-module-canonical-url-graph-ql/health.svg)

```
[![Health](https://phpackages.com/badges/ecwhim-module-canonical-url-graph-ql/health.svg)](https://phpackages.com/packages/ecwhim-module-canonical-url-graph-ql)
```

###  Alternatives

[adyen/module-payment

Official Magento2 Plugin to connect to Payment Service Provider Adyen.

1663.0M10](/packages/adyen-module-payment)[snowdog/module-menu

Provides powerful menu editor to replace category based menus in Magento 2

3271.7M5](/packages/snowdog-module-menu)[scandipwa/catalog-graphql

Catalog-specific modifications for ScandiPWA

17230.9k2](/packages/scandipwa-catalog-graphql)[scandipwa/persisted-query

ScandiPWA persisted query module

12244.5k3](/packages/scandipwa-persisted-query)[graycore/magento2-graphql-introspection-cache

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

106.6k](/packages/graycore-magento2-graphql-logger)

PHPackages © 2026

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