PHPackages                             brunocanada/hreflang - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. brunocanada/hreflang

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

brunocanada/hreflang
====================

This Magento 2 multi store extension adds the alternate hreflang tag for: Pages, Product and Category.

v1.1.1(5y ago)2165.3k↑32.4%12MITPHP

Since Feb 9Pushed 4y ago7 watchersCompare

[ Source](https://github.com/bruno-canada/magento2-hrefLang)[ Packagist](https://packagist.org/packages/brunocanada/hreflang)[ Docs](https://github.com/bruno-canada/magento2-hrefLang)[ RSS](/packages/brunocanada-hreflang/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Magento 2 HREF LANG SEO with Multi Store Support
================================================

[](#magento-2-href-lang-seo-with-multi-store-support)

[![GitHub release](https://camo.githubusercontent.com/6f228a7a329ffdc3d9eeaf9085cfc5400e5dfff3848e100e2f75c42fdb4b2a80/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6272756e6f2d63616e6164612f6d6167656e746f322d687265664c616e67)](https://GitHub.com/bruno-canada/magento2-hrefLang/releases/) [![GitHub license](https://camo.githubusercontent.com/40867449317fc7ce5e7f0d4b20a7711ed3738c359f6884c93e76737c38b34c38/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6272756e6f2d63616e6164612f6d6167656e746f322d687265664c616e67)](https://github.com/bruno-canada/magento2-hrefLang/blob/master/LICENSE) [![Github all releases](https://camo.githubusercontent.com/bb0c3b124d362953e7880c3755473111bbaa92409d8fcdc383cc03b9916b30de/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f6272756e6f2d63616e6164612f6d6167656e746f322d687265664c616e672f746f74616c)](https://github.com/bruno-canada/magento2-hrefLang/releases/) [![GitHub forks](https://camo.githubusercontent.com/efdf92797f18a9225e4ce5d88b4750813545e6e1e69943f8a7850386dc286c0e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6272756e6f2d63616e6164612f6d6167656e746f322d687265664c616e672e7376673f7374796c653d736f6369616c266c6162656c3d466f726b266d61784167653d32353932303030)](https://github.com/bruno-canada/magento2-hrefLang/network)

---

 This Magento 2 multi store extension adds the alternate hreflang tag for: Pages, Product and Category.

Table of Contents
=================

[](#table-of-contents)

- [About](#about)
- [Getting Started](#getting_started)
    - [Prerequisites](#prerequisites)
    - [Installing via Composer](#viacomposer)
    - [Manual Instalation](#manualinstallation)
    - [Module Management](#modulemanagement)

About
=======================================

[](#about-)

This extension solves a SEO specific problem of content duplication for Google and other search engines.

It automatically adds the HREFLANG tag to pages, product and category of Magento considering your multi store structure.

Google Hreflang reference:

MOZ Hreflang reference:

Getting Started
===========================================================

[](#getting-started-)

Prerequisites
-------------------------------------------------------

[](#prerequisites-)

```
PHP 7+
Magento 2
Zend Framework
Composer 1.10.16

```

Installing via Composer
---------------------------------------------------------------

[](#installing-via-composer-)

1. Access your Magento 2 root directory
2. Run `composer require brunocanada/hreflang`
3. Double-check if it is installed and enabled, run `bin/magento module:status BrunoCanada_HrefLang`

Manual Instalation
-----------------------------------------------------------------

[](#manual-instalation-)

1. Download this package;
2. Create the following folder inside your Magento 2 installation

```
app/code/BrunoCanada/HrefLang

```

3. Paste the files of this package inside the created folder (step 2)
4. Run the following command inside your Magento 2 installation:

```
$ bin/magento setup:upgrade

```

Module Management
--------------------------------------------------------------

[](#module-management-)

- Enable module: `bin/magento module:enable BrunoCanada_HrefLang`
- Disable module: `bin/magento module:disable BrunoCanada_HrefLang`

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.3% 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 ~0 days

Total

3

Last Release

1924d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c8d5d0632bf33107ddeecfd7e58cba09958a0518e34086be193bb939197e643?d=identicon)[bruno-canada](/maintainers/bruno-canada)

---

Top Contributors

[![brnquester](https://avatars.githubusercontent.com/u/55158870?v=4)](https://github.com/brnquester "brnquester (7 commits)")[![frithjof](https://avatars.githubusercontent.com/u/1432985?v=4)](https://github.com/frithjof "frithjof (5 commits)")

---

Tags

seomagento 2magento 2 seohref langmagento 2 multi store

### Embed Badge

![Health badge](/badges/brunocanada-hreflang/health.svg)

```
[![Health](https://phpackages.com/badges/brunocanada-hreflang/health.svg)](https://phpackages.com/packages/brunocanada-hreflang)
```

###  Alternatives

[artesaos/seotools

SEO Tools for Laravel and Lumen

3.3k5.1M60](/packages/artesaos-seotools)[mageplaza/magento-2-seo-extension

Magento 2 SEO extension

138506.6k2](/packages/mageplaza-magento-2-seo-extension)[jbroadway/urlify

A fast PHP slug generator and transliteration library that converts non-ascii characters for use in URLs.

6737.4M62](/packages/jbroadway-urlify)[butschster/meta-tags

The most powerful and extendable tools for managing SEO Meta Tags in your Laravel project

628730.7k2](/packages/butschster-meta-tags)[spatie/laravel-robots-middleware

Add an `all` or `none` robots header to your requests via a middleware in Laravel

3352.1M5](/packages/spatie-laravel-robots-middleware)[magepal/magento2-googletagmanager

Google Tag Manager (GTM) for Magento 2 with Advance Data Layer

2671.5M4](/packages/magepal-magento2-googletagmanager)

PHPackages © 2026

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