PHPackages                             devsdmf/datamonkey - 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. devsdmf/datamonkey

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

devsdmf/datamonkey
==================

A simple database ORM for PHP projects build on top of Doctrine.

1.2.3(9y ago)66651[11 issues](https://github.com/devsdmf/datamonkey/issues)MITPHPPHP &gt;=5.5

Since Jan 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/devsdmf/datamonkey)[ Packagist](https://packagist.org/packages/devsdmf/datamonkey)[ RSS](/packages/devsdmf-datamonkey/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (14)Used By (0)

[![logo](https://camo.githubusercontent.com/c7b6dc7432d657df1c388e1eabd8ba84640d849f0dee168686d4d32e211d1d8f/68747470733a2f2f692e696d6775722e636f6d2f545970534e4f372e706e67)](https://camo.githubusercontent.com/c7b6dc7432d657df1c388e1eabd8ba84640d849f0dee168686d4d32e211d1d8f/68747470733a2f2f692e696d6775722e636f6d2f545970534e4f372e706e67) DataMonkey
============================================================================================================================================================================================================================================================================================================================================================

[](#-datamonkey)

[![Join the chat at https://gitter.im/devsdmf/datamonkey](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/devsdmf/datamonkey?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

[![Build Status](https://camo.githubusercontent.com/4396ed880eaaf99fbc12fa52687647629f25b4fddc9b8f8f9cd157a82b3e6324/68747470733a2f2f7472617669732d63692e6f72672f64657673646d662f646174616d6f6e6b65792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/devsdmf/datamonkey)[![Coverage Status](https://camo.githubusercontent.com/dcab04d5dec4ceb13f1315dfe788e7a3b46f13274b2b58cb40e1ea0419c4108a/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f64657673646d662f646174616d6f6e6b65792f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/devsdmf/datamonkey?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/8b8323bbbb17da5d32e775d6c4c126d0ac08a63715dacfbd3dd0b17c99d7f7bb/68747470733a2f2f706f7365722e707567782e6f72672f64657673646d662f646174616d6f6e6b65792f762f737461626c652e737667)](https://packagist.org/packages/devsdmf/datamonkey)[![Total Downloads](https://camo.githubusercontent.com/500d8a90b60ea369fe07c87a12c62fad5d7475b10dabcb69403ed139855c3732/68747470733a2f2f706f7365722e707567782e6f72672f64657673646d662f646174616d6f6e6b65792f646f776e6c6f6164732e737667)](https://packagist.org/packages/devsdmf/datamonkey)[![Documentation Status](https://camo.githubusercontent.com/c04630235a78de070d65eef81bb461e71ab986ecd7ec460f5c30ccd7333f23b1/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f646174616d6f6e6b65792f62616467652f3f76657273696f6e3d6c6174657374)](https://readthedocs.org/projects/datamonkey/?badge=latest)[![License](https://camo.githubusercontent.com/ee5a2b1fdf4d3e16df2d9e9d2a8f81997ab27e14ee734ff128d97d0c189a6e42/68747470733a2f2f706f7365722e707567782e6f72672f64657673646d662f646174616d6f6e6b65792f6c6963656e73652e737667)](https://packagist.org/packages/devsdmf/datamonkey)

A simple database ORM for PHP projects build on top of Doctrine.

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

[](#installation)

```
$ composer require devsdmf/datamonkey
```

Usage
-----

[](#usage)

Creating an entity:

```
namespace Vendor\Package;

use DataMonkey\Entity\ExportableEntity;
use DataMonkey\Entity\ExportAbstract;

class MyEntity extends ExportAbstract implements ExportableEntity
{
    /**
     * @pk
     * @db_ref id_entity
     * @strategy auto
     */
    public $id = null;

    /**
     * @db_ref foo_column
     */
    public $foo = null;
}
```

Creating a factory:

```
namespace Vendor\Package;

use DataMonkey\Entity\Factory\AbstractFactory;
use Vendor\Package\MyEntity;

class MyFactory extends AbstractFactory
{

    public function create($options = null)
    {
        return MyEntity::factory($options);
    }
}
```

Creating an repository

```
namespace Vendor\Package;

use DataMonkey\Repository\Repository;

class MyRepository extends Repository
{

    protected $_name = 'mytable';
}
```

Persisting an entity:

```
use Vendor\Package\MyEntity;
use Vendor\Package\MyFactory;
use Vendor\Package\MyRepository;

// Configure your doctrine DBAL connection
$connection = new \Doctrine\DBAL\Connection(...);

$entity = new MyEntity();
$entity->foo = 'bar';

$repo = new MyRepository($connection, new MyFactory());
$repo->save($entity);
```

Done!

Documentation
-------------

[](#documentation)

- [Developers Guide](http://datamonkey.readthedocs.org/en/latest/)
- [API Documentation](https://devsdmf.github.io/datamonkey)

Tests
-----

[](#tests)

```
$ composer install --dev
$ ./vendor/bin/phpunit

```

License
-------

[](#license)

This library is licensed under the [MIT license](LICENSE).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 95.1% 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 ~66 days

Total

12

Last Release

3406d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.4

1.2.0PHP &gt;=5.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1649565?v=4)[Lucas Mendes](/maintainers/devsdmf)[@devsdmf](https://github.com/devsdmf)

---

Top Contributors

[![devsdmf](https://avatars.githubusercontent.com/u/1649565?v=4)](https://github.com/devsdmf "devsdmf (77 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (2 commits)")[![pablosanches](https://avatars.githubusercontent.com/u/1846624?v=4)](https://github.com/pablosanches "pablosanches (1 commits)")[![sndsgd](https://avatars.githubusercontent.com/u/5289973?v=4)](https://github.com/sndsgd "sndsgd (1 commits)")

---

Tags

ormdevsdmfdatamonkey

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

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

Symfony DoctrineBundle

4.8k241.3M3.3k](/packages/doctrine-doctrine-bundle)[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58723.9M36](/packages/scienta-doctrine-json-functions)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[sonata-project/doctrine-orm-admin-bundle

Integrate Doctrine ORM into the SonataAdminBundle

46117.7M155](/packages/sonata-project-doctrine-orm-admin-bundle)[doctrine/doctrine-orm-module

Laminas Module that provides Doctrine ORM functionality

4407.3M293](/packages/doctrine-doctrine-orm-module)

PHPackages © 2026

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