PHPackages                             fup/wordpress-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. fup/wordpress-middleware

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

fup/wordpress-middleware
========================

This PSR-15 middleware allows you to include Wordpress into your Middleware-Pipeline

2.0.1-alpha(8y ago)38MITPHPPHP ^5.6 || ^7.2

Since Jan 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/FundP/WordpressPSR15Bridge)[ Packagist](https://packagist.org/packages/fup/wordpress-middleware)[ RSS](/packages/fup-wordpress-middleware/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (5)Versions (9)Used By (0)

WordpressPSR15Bridge
====================

[](#wordpresspsr15bridge)

This PSR-15 middleware allows you to include Wordpress into your Middleware-Pipeline

Getting Started
---------------

[](#getting-started)

### Prerequisites

[](#prerequisites)

- Install Wordpress within a public accesible directory of your webserver.
- install composer if you haven't yet (seriously [install composer](https://getcomposer.org/))
- TemplateRendererInterface Implementation to pass into WordpressAction

### Installing

[](#installing)

Install Composer

```
$ composer require fundp/wordpress-psr15-bridge

```

Generate `WordpressAction` with a factory. Inject `TemplateRendererInterface`-Implementation, the `WordpressBridgeService` within this lib and

```
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    {
        $template = $container->get(TemplateRendererInterface::class);
        $wordpressBridgeService = $container->get(WordpressBridgeService::class);
        return new WordpressAction($template, $wordpressBridgeService, 'yourproject::your-template');
    }
```

pipe Action into your pipeline

```
$app->pipe( WordpressAction::class);
```

register action and your factory in your dependency injection. May look like this with [Zendframework](https://github.com/zendframework/zend-servicemanager)

```
return [
   'factories'  => [
      WordpressAction::class => WordpressActionFactory::class
   ]
];
```

Create a TemplateFile that contains the necessary Template-Variable like this

blank-wordpress.phtml

```

```

Running the tests
-----------------

[](#running-the-tests)

`$ Run, Forrest, run!`

Built With
----------

[](#built-with)

- [http-interop/http-middleware](https://github.com/http-interop/http-middleware)
- [zendframework/zend-diactoros](https://github.com/zendframework/zend-diactoros)
- [composer](https://getcomposer.org/)
-

Contributing
------------

[](#contributing)

Workflow for contributing is not defined yet which leaves all the opportunities to you by now.

Versioning
----------

[](#versioning)

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).

Authors
-------

[](#authors)

- **Bastian Charlet** - *Initial work* - [Bastianowicz](https://github.com/Bastianowicz)

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

Acknowledgments
---------------

[](#acknowledgments)

- Inspired by legacy integration approach of [RalfEggert](https://github.com/RalfEggert)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Total

6

Last Release

3078d ago

Major Versions

0.1-beta → 1.0-beta2018-01-24

1.0-beta → 2.0-alpha2018-01-24

1.0.1-beta → 2.0.1-alpha2018-01-24

PHP version history (2 changes)0.1-betaPHP ^5.6 || ^7.2

1.0.2-betaPHP ^5.6 || ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/cf8f7ca64a0b3e85205b1514323378f9f0f33b1f05d1bddcf63141e76db5b395?d=identicon)[FP-Creating-Communities](/maintainers/FP-Creating-Communities)

---

Top Contributors

[![Bastianowicz](https://avatars.githubusercontent.com/u/10234530?v=4)](https://github.com/Bastianowicz "Bastianowicz (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fup-wordpress-middleware/health.svg)

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

###  Alternatives

[codeigniter4/devkit

Development toolkit for CodeIgniter libraries and projects

69201.9k119](/packages/codeigniter4-devkit)

PHPackages © 2026

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