PHPackages                             atukai/theme-middleware - 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. atukai/theme-middleware

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

atukai/theme-middleware
=======================

Themes support for Zend Expressive

0.1.2(8y ago)250MITPHPPHP ^7.0

Since Sep 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/atukai/theme-middleware)[ Packagist](https://packagist.org/packages/atukai/theme-middleware)[ RSS](/packages/atukai-theme-middleware/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (7)Used By (0)

Theme Middleware
================

[](#theme-middleware)

Support themes middleware that allows to switch between themes. It is generally designed for Zend Expressive.

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

[](#installation)

`composer require atukai/theme-middleware`

Usage
-----

[](#usage)

**Zend Expressive**:

Include config from ConfigProvider.php. Recommend to use \[Expressive Configuration Manager\] ()

```
$configManager = new ConfigManager([
    ...,
    \At\Theme\ConfigProvider::class,
]);
```

Create themes folder.

```
./themes
```

Configure your settings.

```
'themes' => [
    'theme_paths' => [
         __DIR__ . '/../themes/'
    ],
];
```

**Other frameworks**:

You should implement `Zend\Expressive\Template\TemplateRendererInterface` and put it under `TemplateRendererInterface::class` key into your container

Resolvers
---------

[](#resolvers)

It uses resolvers to detect theme name that should be currently used for rendering. By default the `At\Theme\Resolver\ConfigurationResolver` is used to get theme specified in config. You can add one or more resolvers with priority.

```
'themes' => [
    'paths' => [
         __DIR__ . '/../themes/'
    ],
    'default_theme' => 'default',
    'resolvers' => [
        \At\Theme\Resolver\HttpRequestResolver::class => 20,
    ],
];
```

Assets
------

[](#assets)

```
'themes' => [
    'paths' => [
         __DIR__ . '/../themes/'
    ],
    'default_theme' => 'default',
    'resolvers' => [
        \At\Theme\Resolver\HttpRequestResolver::class => 20,
    ],
    'assets' => [
        'paths' => [__DIR__ . '/../themes/default/assets'],
        'cache_dir' => __DIR__ . '/../public'
    ]
];
```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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 ~59 days

Recently: every ~73 days

Total

6

Last Release

3261d ago

PHP version history (2 changes)0.0.1PHP ^5.6 || ^7.0

0.1.0PHP ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/389bfa175514e99d1425701d5b880ae5d08bdb9015fbe606d493428e4abea82e?d=identicon)[atukai](/maintainers/atukai)

---

Top Contributors

[![atukai](https://avatars.githubusercontent.com/u/308995?v=4)](https://github.com/atukai "atukai (25 commits)")

---

Tags

middlewarepsr7themeszend-expressive

### Embed Badge

![Health badge](/badges/atukai-theme-middleware/health.svg)

```
[![Health](https://phpackages.com/badges/atukai-theme-middleware/health.svg)](https://phpackages.com/packages/atukai-theme-middleware)
```

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k86.9M2.2k](/packages/symfony-symfony)[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/packages/cakephp-cakephp)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[moonshine/moonshine

Laravel administration panel

1.3k239.9k75](/packages/moonshine-moonshine)[ecotone/ecotone

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

562565.8k42](/packages/ecotone-ecotone)[jaxon-php/jaxon-core

Jaxon is an open source PHP library for easily creating Ajax web applications

73147.2k29](/packages/jaxon-php-jaxon-core)

PHPackages © 2026

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