PHPackages                             mouf/mouf - 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/mouf

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

mouf/mouf
=========

The Mouf PHP framework: an open-source PHP framework providing an easy way to download, install, use and reuse components, with a graphical user interface.

v2.0.50(3y ago)55146.0k↓50%27[27 issues](https://github.com/thecodingmachine/mouf/issues)[1 PRs](https://github.com/thecodingmachine/mouf/pulls)17MITPHPPHP ^8.0

Since Apr 21Pushed 2y ago10 watchersCompare

[ Source](https://github.com/thecodingmachine/mouf)[ Packagist](https://packagist.org/packages/mouf/mouf)[ Docs](http://mouf-php.com)[ RSS](/packages/mouf-mouf/feed)WikiDiscussions 2.0 Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (66)Used By (17)

Mouf 2: Dependency injection... on steroids
===========================================

[](#mouf-2-dependency-injection-on-steroids)

[![Latest Unstable Version](https://camo.githubusercontent.com/8c1482c15b09d4d60feec8cc43340a246c5323ad7fb15c4a98c81a71710bf18e/68747470733a2f2f706f7365722e707567782e6f72672f6d6f75662f6d6f75662f762f756e737461626c652e706e67)](https://packagist.org/packages/mouf/mouf) [![Total Downloads](https://camo.githubusercontent.com/3261638b9c310b9ef0bda0817f316697e8ed090674c39cff6aba19a77e572b2d/68747470733a2f2f706f7365722e707567782e6f72672f6d6f75662f6d6f75662f646f776e6c6f6164732e706e67)](https://packagist.org/packages/mouf/mouf) [![License](https://camo.githubusercontent.com/77561e37e129e460862d711ecb3f188ed4a742dc2b6244bd6dd0ef684ca10876/68747470733a2f2f706f7365722e707567782e6f72672f6d6f75662f6d6f75662f6c6963656e73652e706e67)](https://packagist.org/packages/mouf/mouf) [![Build Status](https://camo.githubusercontent.com/601d5a3e55079f6ed5c0c893272824cd87360c8118ef12d56b5a032067b1686f/68747470733a2f2f7472617669732d63692e6f72672f746865636f64696e676d616368696e652f6d6f75662e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/thecodingmachine/mouf)What is Mouf?
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#---what-is-mouf)

Mouf is a PHP dependency injection framework with a nice web-based user interface.

Why Mouf?
---------

[](#why-mouf)

Dependency injection solves the **spaghetti code** problem by externalizing all the instances declaration into a **configuration file**. But soon, this file becomes a **spaghetti configuration file**.
Mouf solves that problem by providing a nice **web-based UI** to edit your file.

By solving that problem, Mouf opens a whole new world of possibities where most of your application is declared using a user interface instead of written in pure PHP code.

Want to learn more about dependency injection? [Check out the dependency injection guide](doc/dependency_injection.md).
Want to see Mouf basic principles in action? [Check the introduction to graphical dependency injection video](http://mouf-php.com/packages/mouf/mouf/doc/mouf_di_ui.md).

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

[](#getting-started)

Mouf is at the same time a graphical dependency injection framework (the core of Mouf), and a full featured web-framework with hundreds of packages available.

- If you are interested in Mouf's core dependency injection framework, stay here! You are at the right place.
- If you are interested in the global Mouf ecosystem, the MVC library, the database layer, etc..., you might want to start by having a look at the [main packages chart](http://mouf-php.com/skills) or at the [Getting things done with Mouf project](http://mouf-php.com/packages/mouf/getting-things-done-basic-edition/index.md). This is a kind of "distribution" of the most common libraries used with Mouf.
- You can also be interested in extending your existing project with Mouf. Mouf integrates easily with [Wordpress](http://mouf-php.com/packages/mouf/integration.wordpress.moufpress/README.md), [Drupal](http://mouf-php.com/packages/mouf/integration.drupal.druplash/README.md), [Symfony 2](http://mouf-php.com/packages/mouf/interop.symfony.di/README.md), [Silex](https://github.com/moufmouf/pimple-interop), [Doctrine](http://mouf-php.com/packages/mouf/database.doctrine-orm-wrapper/README.md)or any project compatible with the [container-interop](https://github.com/container-interop/container-interop) project.

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

[](#installation)

Mouf 2 is provided as a [Composer](http://getcomposer.org) package. The name of the package is *mouf/mouf*. Follow the [installation guide](doc/installing_mouf.md) to learn more.

Classes
-------

[](#classes)

Each class can be injected using the Mouf dependency injection features. Because it is graphical and easy to use, you can push dependency injection to new limits. And if you want a nice graphical representation, you can add annotations to your code to add custom logos for your classes, etc...

To learn more about using dependency injection, please read the [Dependency Injection guide](doc/dependency_injection.md).

Packages
--------

[](#packages)

Mouf provides a user interface to help you manage your composer dependencies. Using an extension to the `composer.json` file format, you can [extend the Mouf user interface](doc/extending_mouf_ui.md) to add features to help your developer.

- You are developing a cache package? Add a "Purge" button in Mouf UI to let your developers purge the cache
- You are developing a database connection? Add a screen to create a new database connection, etc...

### Upgrade composer-mouf.json

[](#upgrade-composer-moufjson)

```
$ COMPOSER=composer-mouf.json composer  ... # e.g. COMPOSER=composer-mouf.json composer install
```

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community36

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 81.9% 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 ~57 days

Recently: every ~12 days

Total

65

Last Release

1125d ago

PHP version history (4 changes)v2.0-beta1PHP &gt;=5.3.0

v2.0-beta6PHP &gt;=5.3.9

v2.0.35PHP &gt;=5.4.6

v2.0.42-beta.1PHP ^8.0

### 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 (435 commits)")[![nguyenk](https://avatars.githubusercontent.com/u/2227554?v=4)](https://github.com/nguyenk "nguyenk (26 commits)")[![vaidiep](https://avatars.githubusercontent.com/u/2227695?v=4)](https://github.com/vaidiep "vaidiep (19 commits)")[![homersimpsons](https://avatars.githubusercontent.com/u/16977446?v=4)](https://github.com/homersimpsons "homersimpsons (19 commits)")[![npeguin](https://avatars.githubusercontent.com/u/2227721?v=4)](https://github.com/npeguin "npeguin (7 commits)")[![camkLcbr](https://avatars.githubusercontent.com/u/3781258?v=4)](https://github.com/camkLcbr "camkLcbr (6 commits)")[![xhuberty](https://avatars.githubusercontent.com/u/8350192?v=4)](https://github.com/xhuberty "xhuberty (6 commits)")[![HugoAverty](https://avatars.githubusercontent.com/u/1681508?v=4)](https://github.com/HugoAverty "HugoAverty (3 commits)")[![Zheness](https://avatars.githubusercontent.com/u/5830103?v=4)](https://github.com/Zheness "Zheness (2 commits)")[![dsavina](https://avatars.githubusercontent.com/u/22031211?v=4)](https://github.com/dsavina "dsavina (2 commits)")[![isow](https://avatars.githubusercontent.com/u/2903627?v=4)](https://github.com/isow "isow (2 commits)")[![toscan](https://avatars.githubusercontent.com/u/3525320?v=4)](https://github.com/toscan "toscan (1 commits)")[![llebacq](https://avatars.githubusercontent.com/u/18592688?v=4)](https://github.com/llebacq "llebacq (1 commits)")[![josealbeatcm](https://avatars.githubusercontent.com/u/183588510?v=4)](https://github.com/josealbeatcm "josealbeatcm (1 commits)")[![cbalda](https://avatars.githubusercontent.com/u/6704490?v=4)](https://github.com/cbalda "cbalda (1 commits)")

---

Tags

frameworkdependency-injectiondiiocmoufinversion of control

### Embed Badge

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

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

###  Alternatives

[nette/di

💎 Nette Dependency Injection Container: Flexible, compiled and full-featured DIC with perfectly usable autowiring and support for all new PHP features.

92340.6M1.4k](/packages/nette-di)[joomla/di

Joomla DI Package

15391.2k11](/packages/joomla-di)[mouf/pimple-interop

This project is a very simple extension to the Pimple microframework. It adds to Pimple compatibility with the container-interop APIs.

102.4M2](/packages/mouf-pimple-interop)[mouf/picotainer

This package contains a really minimalist dependency injection container compatible with container-interop.

16189.8k11](/packages/mouf-picotainer)[capsule/di

A PSR-11 compliant autowiring dependency injection container.

2857.5k2](/packages/capsule-di)

PHPackages © 2026

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