PHPackages                             mouf/integration.wordpress.moufpress - 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. mouf/integration.wordpress.moufpress

ActiveMouf-library

mouf/integration.wordpress.moufpress
====================================

A MVC framework for Wordpress based on Mouf and compatible with Splash MVC

3.0.x-dev(10y ago)01762MITPHPPHP &gt;=5.3.0

Since Feb 4Pushed 10y ago12 watchersCompare

[ Source](https://github.com/thecodingmachine/integration.wordpress.moufpress)[ Packagist](https://packagist.org/packages/mouf/integration.wordpress.moufpress)[ Docs](https://mouf-php.com/packages/mouf/integration.wordpress.moufpress)[ RSS](/packages/mouf-integrationwordpressmoufpress/feed)WikiDiscussions 3.0 Synced 3d ago

READMEChangelogDependencies (11)Versions (3)Used By (0)

MoufPress: a MVC framework for Wordpress based on Mouf
======================================================

[](#moufpress-a-mvc-framework-for-wordpress-based-on-mouf)

[![Logo](doc/images/moufpress.png)](doc/images/moufpress.png)

Why should I care?
------------------

[](#why-should-i-care)

Moufpress is a **MVC framework for Wordpress**. Actually, it is a bridge between [Wordpress](http://wordpress.org/) and the [Splash MVC framework](http://mouf-php.com/packages/mouf/mvc.splash/index.md)used by [Mouf-PHP](http://mouf-php.com) (a dependency injection based framework).

MoufPress offers the following features:

- **compatible controllers**, declared through a nice graphical DI container
- **PSR-7 compatibility**: your controllers can take into parameter `Request` objects and respond `Response` objects that are compatible with the [PSR-7 HTTP Message interfaces](http://www.php-fig.org/psr/psr-7/).
- use of **annotations** in your controllers (for instance: `@URL` to declare a new route, `@Logged` to restrict access to logged users, etc...)
- support for any kind of **views** supported in Splash MVC (this includes plain PHP files, [Twig templates](http://twig.sensiolabs.org/), etc...)
- a [nice web-based UI to scafold your controllers and views](http://mouf-php.com/packages/mouf/mvc.splash/doc/writing_controllers.md)
- integration of your views inside the Wordpress theme
- (very) easy Ajax support
- creating [**Wordpress widgets**](doc/widgets.md) through dependency injection in Mouf
- integration of Mouf's [**authentication and authorization**](doc/authentication_and_right_management.md) system into Wordpress
- integration of Mouf's [**web library (JS/CSS)**](doc/scripts-and-styles.md) system into Wordpress

Another interesting feature is that your code is **100% compatible** with Splash MVC. This means that:

- You can write a controller in Splash MVC and deploy it later in Wordpress (or the opposite)
- Since there is also a Drupal module for Splash ([Druplash](http://mouf-php.com/packages/mouf/integration.drupal.druplash/README.md)), you can actually **write a controller in Wordpress and deploy it in Drupal** (or the other way around). Yes, you read it correctly, you can develop an application that will run on both Wordpress and Drupal (!) Haha! I see you're interested. Let's get started!

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

[](#installation)

You will first need to install Wordpress and Mouf side by side.

1. Start by installing [Wordpress](http://wordpress.org/) as you would normally do.
2. Install the [WP-Router plugin](https://wordpress.org/plugins/wp-router/).
    Note: even if the plugin page stats this plugin works up to version 3.4 of Wordpress, we have tested with Wordpress 3.8.1 and 4.3.1 and it works great.
3. [Install the Mouf PHP framework](http://mouf-php.com/packages/mouf/mouf/doc/installing_mouf.md) *in the same directory* as Wordpress This means you should have the **composer.json** file of Composer in the same directory as the **wp-config.php** of Wordpress.
4. Modify **composer.json** and add the **moufpress** module. Your **composer.json** should contain at least these lines:

    ```
     {
     	"autoload" : {
     		"psr-4" : {
     			"MyApp\\" : "src/MyApp"
     		}
     	},
     	"require" : {
     		"mouf/mouf" : "~2.0",
     		"mouf/integration.wordpress.moufpress" : "~3.0"
     	},
     	"minimum-stability" : "dev",
     	"prefer-stable": true
     }

    ```

    Do not forget to customize your vendor name (the `MyApp` part of the autoloader section).
5. Create the empty `src/` directory at the root of your project.
6. Run the install process in Mouf: connect to Mouf UI and run the install process for all the packages (including Moufpress install process of course)
7. If it has not been done already, activate the **WP Router** module, as well as URL rewriting in settings &gt;&gt; permalinks menu (the only option that CANNOT be set is the default one : `http://localhost/wordtest/?p=123`).
8. When you downloaded Moufpress, Composer automatically copied a Moufpress plugin in the `wp-content/plugins` directory of Wordpress. You need to install this plugin. Connect to your Wordpress admin, select the **Plugins &gt; Installed plugins**menu, and click on the "Activate" button for the "Moufpress" plugin.

Getting started
---------------

[](#getting-started)

[In the next section, we will learn **how to create a controller and a view**.](doc/mvc.md)

Or if you already know Splash, you can directly jump to another part of this documentation:

- [widgets integration](doc/widgets.md)
- [authentication and authorization](doc/authentication_and_right_management.md)
- [web library (JS/CSS)](doc/scripts-and-styles.md)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 67.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 ~144 days

Total

3

Last Release

3831d ago

Major Versions

1.0.x-dev → 2.0.x-dev2015-11-16

2.0.x-dev → 3.0.x-dev2015-11-18

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1104771?v=4)[mouf](/maintainers/mouf)[@Mouf](https://github.com/Mouf)

---

Top Contributors

[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (37 commits)")[![nguyenk](https://avatars.githubusercontent.com/u/2227554?v=4)](https://github.com/nguyenk "nguyenk (13 commits)")[![Cach54](https://avatars.githubusercontent.com/u/2151265?v=4)](https://github.com/Cach54 "Cach54 (3 commits)")[![HugoAverty](https://avatars.githubusercontent.com/u/1681508?v=4)](https://github.com/HugoAverty "HugoAverty (2 commits)")

---

Tags

wordpressmvcmoufsplash

### Embed Badge

![Health badge](/badges/mouf-integrationwordpressmoufpress/health.svg)

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

PHPackages © 2026

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