PHPackages                             matryoshka-model/zf2-matryoshka-module - 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. [Database &amp; ORM](/categories/database)
4. /
5. matryoshka-model/zf2-matryoshka-module

ActiveLibrary[Database &amp; ORM](/categories/database)

matryoshka-model/zf2-matryoshka-module
======================================

ZF2 integration module for Matryoshka

v0.8.0(10y ago)38881BSD-2-ClausePHPPHP &gt;=5.5

Since Aug 29Pushed 10y agoCompare

[ Source](https://github.com/matryoshka-model/zf2-matryoshka-module)[ Packagist](https://packagist.org/packages/matryoshka-model/zf2-matryoshka-module)[ RSS](/packages/matryoshka-model-zf2-matryoshka-module/feed)WikiDiscussions master Synced yesterday

READMEChangelog (8)Dependencies (5)Versions (10)Used By (1)

[![](https://github.com/matryoshka-model/matryoshka/raw/master/docs/assets/images/matryoshka_logo_hi_res_512.png)](https://github.com/matryoshka-model/matryoshka/blob/master/docs/assets/images/matryoshka_logo_hi_res_512.png)

ZF2 module for Matryoshka ------------------------- [![Latest Stable Version](https://camo.githubusercontent.com/84e88488cb3dea8dc98dcd10a1b8c847477b64c428237a1dc03df42a26e19d17/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617472796f73686b612d6d6f64656c2f7a66322d6d617472796f73686b612d6d6f64756c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/matryoshka-model/zf2-matryoshka-module) [![Build Status](https://camo.githubusercontent.com/12f16c7b6e9d5e3e1df3fbe31627168075e56b46a66114474dd6df0e356b1f4e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d617472796f73686b612d6d6f64656c2f7a66322d6d617472796f73686b612d6d6f64756c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/matryoshka-model/zf2-matryoshka-module) [![Coverage Status](https://camo.githubusercontent.com/2faf3734909257c0139cdc6096cf08e9242f31b0e86026e7d490ae55eaa94911/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6d617472796f73686b612d6d6f64656c2f7a66322d6d617472796f73686b612d6d6f64756c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/repos/matryoshka-model/zf2-matryoshka-module/badge.png?branch=master) [![Matryoshka Model's Slack](https://camo.githubusercontent.com/7b173ae656e6f68002d07e15d05a8323c38983856f38238b76f6baf1821d8b54/687474703a2f2f6d617472796f73686b612d736c61636b696e2e6865726f6b756170702e636f6d2f62616467652e7376673f7374796c653d666c61742d737175617265)](http://matryoshka-slackin.herokuapp.com)

> ZF2 integration module for [Matryoshka](https://github.com/matryoshka-model/matryoshka).

This repository contains a ZF2 module that registers **default services** and provides **a set of useful controller plugins**.

#### Community

[](#community)

For questions and support please visit the [slack channel](http://matryoshka.slack.com) (get an invite [here](http://matryoshka-slackin.herokuapp.com)).

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

[](#installation)

Using [composer](http://getcomposer.org/):

Add the following to your `composer.json` file:

```
"require": {
    "matryoshka-model/zf2-matryoshka-module": "~0.8.0"
}
```

Finally, add the module name to your project's `config/application.config.php` under the `modules`key:

```
return [
    /* ... */
    'modules' => [
        /* ... */
        'Matryoshka',
    ],
    /* ... */
];
```

How-to
------

[](#how-to)

Before using this module you only need to configure Matryoshka settings according to your model.

Then you can use built-in plugins in your controllers.

Example:

```
public function fooAction()
{
	$myModel  = $this->model()->get('MyModel'); // Retrieve a model instance through the ModelManager
	$myObject = $this->object()->get('MyObject'); // Retrieve an object instance through the ModelManager
}
```

---

[![Analytics](https://camo.githubusercontent.com/a69ec597e3e2b4707309b79de84a9f0df69c27b73c8377c668796a0ccddf7f75/68747470733a2f2f67612d626561636f6e2e61707073706f742e636f6d2f55412d34393635373137362d322f7a66322d6d617472796f73686b612d6d6f64756c653f666c6174)](https://github.com/igrigorik/ga-beacon)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

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

Recently: every ~137 days

Total

8

Last Release

3761d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.4

v0.7.0PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/504f6b7857bcaa1337d91366a2768d65dcfcdf12ca9281422f7b4d9404aba4ac?d=identicon)[fntlnz](/maintainers/fntlnz)

![](https://avatars.githubusercontent.com/u/120051?v=4)[Leo Di Donato](/maintainers/leodido)[@leodido](https://github.com/leodido)

![](https://avatars.githubusercontent.com/u/3390997?v=4)[Leonardo Grasso](/maintainers/leogr)[@leogr](https://github.com/leogr)

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

---

Top Contributors

[![leodido](https://avatars.githubusercontent.com/u/120051?v=4)](https://github.com/leodido "leodido (36 commits)")[![leogr](https://avatars.githubusercontent.com/u/3390997?v=4)](https://github.com/leogr "leogr (26 commits)")[![fntlnz](https://avatars.githubusercontent.com/u/3083633?v=4)](https://github.com/fntlnz "fntlnz (7 commits)")[![visa4](https://avatars.githubusercontent.com/u/3627018?v=4)](https://github.com/visa4 "visa4 (1 commits)")

---

Tags

databasemodeldbmvcmodulezf2backendback-endmatryoshka

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/matryoshka-model-zf2-matryoshka-module/health.svg)

```
[![Health](https://phpackages.com/badges/matryoshka-model-zf2-matryoshka-module/health.svg)](https://phpackages.com/packages/matryoshka-model-zf2-matryoshka-module)
```

###  Alternatives

[lastzero/doctrine-active-record

Object-oriented CRUD for Doctrine DBAL

306.0k](/packages/lastzero-doctrine-active-record)

PHPackages © 2026

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