PHPackages                             mouf/integration.magento.moufgento - 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. [Framework](/categories/framework)
4. /
5. mouf/integration.magento.moufgento

ActiveMouf-library[Framework](/categories/framework)

mouf/integration.magento.moufgento
==================================

Moufgento is a modern MVC framework for Magento, based on the Splash MVC framework (designed for Mouf-PHP).

1.0.x-dev(10y ago)120021MITPHPPHP &gt;=5.3.0

Since Nov 18Pushed 9y ago4 watchersCompare

[ Source](https://github.com/thecodingmachine/integration.magento.moufgento)[ Packagist](https://packagist.org/packages/mouf/integration.magento.moufgento)[ Docs](https://github.com/thecodingmachine/integration.magento.moufgento)[ RSS](/packages/mouf-integrationmagentomoufgento/feed)WikiDiscussions 1.0 Synced 1mo ago

READMEChangelogDependencies (4)Versions (1)Used By (1)

Moufgento: a modern MVC framework for Magento based on Mouf and PSR-7
=====================================================================

[](#moufgento-a-modern-mvc-framework-for-magento-based-on-mouf-and-psr-7)

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

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

Moufgento is a **modern MVC framework for Magento**. Actually, it is a bridge between [Magento](http://magento.com/) 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).

Magento comes with a very heavy framework, based on Zend Framework 1. It is definitely very powerful, allowing to overload almost any part of the application. Yet, it is somewhat old and lacks the modern features we have come to love in the current MVC frameworks, like dependency injection, annotations support, few or no XML configuration files... For these reasons, if you find yourself with a need to do a massive custom application inside Magento, you might want to use something else than Magento default framework.

Moufgento is at the same time a module for Magento that adds PSR-7 compatible middleware support AND an integration of Splash, the default MVC framework that comes with Mouf and that is provided as a middleware.

Moufgento offers the following features:

- The ability to plug any zend/stratigility middleware (i.e. PSR-7 Middleware) in Magento
- A default router (Splash) with
    - **controllers**, declared through a nice graphical DI container
    - 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 Magento theme
    - (very) easy Ajax support
    - integration of Mouf's [**authentication**](doc/authentication_and_right_management.md) system into Magento
    - integration of Mouf's [**web library (JS/CSS)**](doc/scripts-and-styles.md) system into Magento

Moufgento has been tested with Magento CE 1.9.

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 Magento (or the opposite), or any other third party system that Splash can be plugged into (i.e. Drupal, Wordpress, Joomla...)

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

[](#installation)

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

1. Start by installing [Magento](http://magento.com/) as you would normally do.
2. [Install the Mouf PHP framework](http://mouf-php.com/packages/mouf/mouf/doc/installing_mouf.md) *in the same directory* as Magento This means you should have the **composer.json** file of Composer in the same directory as the **index.php** of Magento.
3. Modify **composer.json** and add the **moufgento** module. Your **composer.json** should contain at least these lines:

```
{
    "repositories": [
    {
        "type": "composer",
        "url": "http://packages.firegento.com"
    },
    {
        "type": "vcs",
        "url": "https://github.com/magento-hackathon/magento-composer-installer"
    }
    ],
    "autoload" : {
        "psr-0" : {
            "MyApp" : "src/"
        }
    },
    "require" : {
        "magento-hackathon/magento-composer-installer": "*",
        "mouf/mouf" : "~2.0",
        "mouf/integration.magento.moufgento" : "~1.0",
    },
    "minimum-stability" : "dev",
    "prefer-stable": true
}
```

Do not forget to customize your vendor name (the `MyApp` part of the autoloader section). 4. Create the empty `src/` directory at the root of your project. 5. Run the install process in Mouf: connect to Mouf UI and run the install process for all the packages (including Moufgento install process of course) 6. You have now to patch the Magento Autoloader because there is [some weird issue with the `class_exists` function](http://www.webguys.de/magento/tuerchen-11-the-magento-autoloader-and-external-libraries/) . First, copy `app/code/core/Varien/Autoload.php` into `app/code/local/Varien/Autoload.php`Then, in the `autoload` method, replace :

```
return include $classFile;
```

By

```
return @include $classFile;
```

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

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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

Unknown

Total

1

Last Release

3834d ago

### 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 (12 commits)")[![josealbeatcm](https://avatars.githubusercontent.com/u/183588510?v=4)](https://github.com/josealbeatcm "josealbeatcm (2 commits)")[![npeguin](https://avatars.githubusercontent.com/u/2227721?v=4)](https://github.com/npeguin "npeguin (1 commits)")

---

Tags

magentomvcmoufsplash

### Embed Badge

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

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

###  Alternatives

[composer/installers

A multi-framework Composer library installer

1.4k136.0M6.0k](/packages/composer-installers)[laminas/laminas-mvc

Laminas's event-driven MVC layer, including MVC Applications, Controllers, and Plugins

17224.4M365](/packages/laminas-laminas-mvc)

PHPackages © 2026

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