PHPackages                             goten4/gtn-persist-base - 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. goten4/gtn-persist-base

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

goten4/gtn-persist-base
=======================

Zend Framework 2 Module that provides Persistence basic functionality (trying to follow DDD principles)

12.2kPHP

Since Apr 17Pushed 11y ago2 watchersCompare

[ Source](https://github.com/goten4/GtnPersistBase)[ Packagist](https://packagist.org/packages/goten4/gtn-persist-base)[ RSS](/packages/goten4-gtn-persist-base/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Zend Framework 2 DDD Persistence Module
=======================================

[](#zend-framework-2-ddd-persistence-module)

[![Build Status](https://camo.githubusercontent.com/6dad9641e54e726b91d39c14c57514c86b607a16a63f2db46de895473f1ab296/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f676f74656e342f47746e50657273697374426173652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/goten4/GtnPersistBase)[![Coverage Status](https://camo.githubusercontent.com/d8b7523e0ba80f2e9ff3a98a6257b731734fa7f05aed09f5fa20c438cab35b5e/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f676f74656e342f47746e50657273697374426173652f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/goten4/GtnPersistBase)

Introduction
------------

[](#introduction)

**GtnPersistBase** is a Zend Framework 2 module providing the basics for persistence trying to follow [DDD principles](http://domaindrivendesign.org/books/#DDD).

Requirements
------------

[](#requirements)

- Zend Framework 2

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

[](#installation)

Simply clone this project into your `./vendor/` directory and enable it in your `./config/application.config.php` file.

Provided Classes and Interfaces
-------------------------------

[](#provided-classes-and-interfaces)

- `GtnPersistBase\Model\EntityInterface` - Interface defining an entity.
- `GtnPersistBase\Model\AggregateRootInterface` - Interface defining an aggregate root.
- `GtnPersistBase\Model\RepositoryInterface` - Interface defining the minimum set of methods a repository must implements.
- `GtnPersistBase\Infrastructure\Memory\Repository` - In memory Repository implementation (useful in unit tests context).

See also
--------

[](#see-also)

- [GtnPersistZendDb](https://github.com/goten4/GtnPersistZendDb)
- [GtnPersistDoctrineORM](https://github.com/goten4/GtnPersistDoctrineORM)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47129?v=4)[Emmanuel Bouton](/maintainers/goten4)[@goten4](https://github.com/goten4)

---

Top Contributors

[![goten4](https://avatars.githubusercontent.com/u/47129?v=4)](https://github.com/goten4 "goten4 (29 commits)")

### Embed Badge

![Health badge](/badges/goten4-gtn-persist-base/health.svg)

```
[![Health](https://phpackages.com/badges/goten4-gtn-persist-base/health.svg)](https://phpackages.com/packages/goten4-gtn-persist-base)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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