# outeredge/magento-structured-data-module

> Magento Structured Data Module by outer/edge

`composer require outeredge/magento-structured-data-module`

Canonical URL: https://packagento.com/outeredge/magento-structured-data-module

## At a glance

- **Vendor**: outeredge (https://packagento.com/outeredge.md)
- **Latest version**: 5.2.5 — released 2026-01-27
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/outeredge/magento-structured-data-module and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require outeredge/magento-structured-data-module:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Magento Structured Data Module by outer/edge

## README

[![Packagist](https://img.shields.io/packagist/v/outeredge/magento-structured-data-module?style=for-the-badge)](https://packagist.org/packages/outeredge/magento-structured-data-module)
[![Packagist](https://img.shields.io/packagist/dt/outeredge/magento-structured-data-module?style=for-the-badge)](https://packagist.org/packages/outeredge/magento-structured-data-module)
[![Packagist](https://img.shields.io/packagist/dm/outeredge/magento-structured-data-module?style=for-the-badge)](https://packagist.org/packages/outeredge/magento-structured-data-module)

## outer/edge Structured Data Module for Magento 2

[Hyvä](https://hyva.io) and [Breeze](https://breezefront.com/) compatible.

Our open source module allows you to quickly add structured data markup (also known as Rich Snippets) to any Magento 2 store by simply installing our module and setting a few configuration options. 

Once this module is installed you will have valid structured data in the source of your product, contact and CMS pages. For example:
https://developers.google.com/search/docs/advanced/structured-data/product

This will look similar to the below:

```
<script type="application/ld+json">
{
    "@context": "https://schema.org/",
    "@type": "Product",
    "@id": "https://example.co.uk/blue-t-shirt#Product",
    "brand": {
            "@type": "Brand",
            "name": "Nike"
    },
    "aggregateRating": {
        "@type": "AggregateRating",
        "bestRating": "100",
        "worstRating": "1",
        "ratingValue": "4.55",
        "reviewCount": "5"
    },
    "name": "Nike Blue T-Shirt",
    "sku": "blue-t-shirt",
    "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer viverra vitae nulla quis venenatis. Donec sollicitudin pharetra eros, in facilisis justo fringilla eu. In at consequat felis.",
    "image": "https://example.co.uk/media/catalog/product/b/t/blue-t-shirt.jpg",
    "offers": {
        "@type": "Offer",
        "url": "https://example.co.uk/blue-t-shirt",
        "price": 18.99,
        "priceCurrency": "GBP",
        "priceSpecification": {
            "@type": "UnitPriceSpecification",
            "price": 18.99,
            "priceCurrency": "GBP",
            "valueAddedTaxIncluded": true
        },
        "availability": "http://schema.org/InStock",
        "itemCondition": "http://schema.org/NewCondition"
    }
}
</script>
```

The module provides the following structured data:

#### Product Page (GraphQL available)

* @type
* @id
* name
* sku
* description
* image
* weight
* brand
* aggregateRating
  * bestRating
  * worstRating
  * ratingValue
  * reviewCount
* mpn
* material
* color
* price
* priceCurency
* valueAddedTaxIncluded
* availability
* itemCondition
* AggregateOffer
  * offers
* highPrice
* lowPrice

#### Contact Page

* @type
* @id
* name
* image
* address
* telephone
* email
* url
* geo

#### CMS Page

* name
* mainContentOfPage
* description
* primaryImageOfPage

### Installation

##### Install via Composer

```
composer require outeredge/magento-structured-data-module
```

##### Review configuration for Structure Data Module

Configuration is available in `Stores > Configuration > outer/edge > Structured Data`. The following options are available:

##### Products

![structured_data-product](/assets/config-product.png)

* **Enable:** Enable or disable structured data on product pages.
* **Use Short Description:** Use `short_description` attribute for the `description` markup. By default `description` will be used.
* **Include ChildProducts:** Choose whether to include individual offer for each child (simple) product for structured data on configurable product pages.
* **Include Product Weights:** Ad `weight` schema to product page structured data.
* **Product Brand/Manufacturer field:** Choose which Magento attribute is used to populate the structured data values.
  - **Brand** (Default: `manufacturer` or `brand`)
  - **MPN** (Default: empty)
  - **ISBN** (Default: empty)
  - **Size** (Default: empty)
  - **GTIN** (Default: empty)
  - **Color** (Default: `Color` or `Colour`)
  - **Material** (Default: empty)
  - **Keywords** (Default: empty)

##### CMS Pages

![structured_data-cms](/assets/config-cms.png)

* **Enable:** Enable or disable structured data on CMS pages.
* **Enable About Page:** Enable or disable `"@type": "AboutPage"`.
* **About Page:** Select the CMS page for  `"@type": "AboutPage"`.

##### Organization

![structured_data-contact](/assets/config-organization.png)

* **Type:** Select whether business in a Local Business or Organization.
* **Latitude:** Specify latitude for local business.
* **Longitude:** Specify longitude for local business.
* **Enable on Home Page:** Enable or disable Organization structured data on Home page.
* **Enable on Contact Page:** Enable or disable Organization structured data on Contact page.
* **Related Pages** Populates "SameAs" property. Add links to related pages, for example Facebook, Linked In and other social media sites.

Once the module is installed and configured you will find the schema markup in your source code:

![schema_screenshot](/assets/screenshot-schema.png)

### GraphQL

Our structured data module provides for product schema to the built in Magento GraphGL endpoint. Simply request the `structured_data` field with your product data as per the example below and the data will be returned as a JSON array:

```
{
  products(
    filter: {
        ...
    }
  ) {
    items {
      sku
      name
      structured_data
    }
  }
}
```


### Uninstalling the module

#####  Remove via Composer

```
composer remove outeredge/magento-structured-data-module
```

#### References

##### Google docs for structured data format (using JSON-LD format)
https://developers.google.com/search/docs/guides/intro-structured-data
https://developers.google.com/search/docs/advanced/structured-data/product

##### Structured data syntax is based on
http://schema.org/

## Recent Versions

| Version | Released |
|---|---|
| 5.2.5 | 2026-01-27 |
| 5.2.4 | 2026-01-06 |
| 5.2.3 | 2025-11-05 |
| 5.2.2 | 2025-11-05 |
| 5.2.1 | 2025-07-23 |
| 5.2.0 | 2025-06-17 |
| 5.1.3 | 2025-03-13 |
| 5.1.2 | 2025-03-11 |
| 5.1.1 | 2025-03-06 |
| 5.1.0 | 2025-03-05 |

Showing 10 of 93 versions. Full release history on https://packagento.com/outeredge/magento-structured-data-module.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| php | ^8.1 |

### Require (dev)

| Package | Constraint |
|---|---|
| outeredge/dev-dependencies | ^3.0 |

## Quality

Latest release (5.2.5) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | Pass |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — 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.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Warning | 99 | 99 warnings (ruleset: Magento2) — 73 auto-fixable with phpcbf |
| PHPMD | Warning | 27 | 27 rule violations (IfStatementAssignment:15, UnusedFormalParameter:3, CyclomaticComplexity:2, NPathComplexity:2, MissingImport:2) |
| Cpd | Pass | 0 |  |
| Composer validate | Info | 1 | valid; 1 advisory note (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 37 | 37 | – | – |
| 2.4.8 | – | 37 | 37 | – |
| 2.4.9 | – | – | 37 | 37 |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

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

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["outeredge/magento-structured-data-module"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

outeredge is a Magento 2 vendor on Packagento. See https://packagento.com/outeredge.md for their full catalogue.

