PHPackages                             yireo/magento2-theme-by-route - 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. yireo/magento2-theme-by-route

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

yireo/magento2-theme-by-route
=============================

Assign a specific theme to specific routes

1.1.2(7mo ago)2443OSL-3.0PHPCI passing

Since Sep 9Pushed 5mo agoCompare

[ Source](https://github.com/yireo/Yireo_ThemeByRoute)[ Packagist](https://packagist.org/packages/yireo/magento2-theme-by-route)[ Fund](https://www.paypal.me/yireo)[ GitHub Sponsors](https://github.com/yireo)[ RSS](/packages/yireo-magento2-theme-by-route/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (4)Versions (8)Used By (0)

Yireo\_ThemeByRoute
===================

[](#yireo_themebyroute)

**Magento 2 module to allow a file `app/etc/theme-by-route.json` to determine which theme needs to be loaded for which route.**

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

[](#installation)

```
composer require yireo/magento2-theme-by-route
bin/magento module:enable Yireo_ThemeByRoute
```

Configuration
-------------

[](#configuration)

Create a file `app/etc/theme-by-route.json` similar to the following:

```
{
  "Loki/luma": [
    "cms/index/index"
  ]
}
```

Now, the `Loki/luma` theme is applied to all pages.

If you want to control under which circumstances which theme is applied, there is an advanced syntax as well:

```
[
  {
    "scope_type": "website",
    "scope_code": "default",
    "theme": "Loki/luma",
    "pages": [
      "cms/index/index"
    ]
  }
]
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance68

Regular maintenance activity

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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

Every ~14 days

Total

7

Last Release

215d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1373981?v=4)[Yireo](/maintainers/yireo)[@yireo](https://github.com/yireo)

---

Top Contributors

[![jissereitsma](https://avatars.githubusercontent.com/u/7670482?v=4)](https://github.com/jissereitsma "jissereitsma (44 commits)")

### Embed Badge

![Health badge](/badges/yireo-magento2-theme-by-route/health.svg)

```
[![Health](https://phpackages.com/badges/yireo-magento2-theme-by-route/health.svg)](https://phpackages.com/packages/yireo-magento2-theme-by-route)
```

###  Alternatives

[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1011.8k26](/packages/loki-magento2-components)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68357.9k](/packages/run-as-root-magento2-prometheus-exporter)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k53](/packages/ecotone-ecotone)[fishpig/magento2-wordpress-integration

Securely integrate WordPress and Magento 2.

83369.2k7](/packages/fishpig-magento2-wordpress-integration)[joseph-leedy/module-custom-fees

Adds configurable custom fees to orders

361.1k](/packages/joseph-leedy-module-custom-fees)[angeo/module-llms-txt

Magento 2 module for AI Engine Optimization (AEO). Generates spec-compliant llms.txt and llms-full.txt per llmstxt.org standard, plus streaming JSONL for vector indexing. Multi-store, multi-website, CLI, cron, async admin UI, Page Builder-aware sanitization, customer-group pricing, atomic writes, ETag/Cache-Control, .md mirrors.

111.1k](/packages/angeo-module-llms-txt)

PHPackages © 2026

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