PHPackages                             g4/data-mapper - 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. g4/data-mapper

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

g4/data-mapper
==============

data-mapper php library

2.1.1(1y ago)269.7k↓33.3%10[1 PRs](https://github.com/g4code/data-mapper/pulls)1MITPHPPHP &gt;=8.2

Since Mar 21Pushed 1y ago10 watchersCompare

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

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

data-mapper
===========

[](#data-mapper)

> data-mapper - [php](http://php.net) library

Install
-------

[](#install)

Via Composer

```
composer require g4/data-mapper
```

Usage
-----

[](#usage)

Development
-----------

[](#development)

### Install dependencies

[](#install-dependencies)

```
composer install
```

### Run unit tests

[](#run-unit-tests)

```
make unit-tests
```

### Run integration tests

[](#run-integration-tests)

Requirements:

- Vagrant - [Download](https://www.vagrantup.com/downloads.html)
- VirtualBox - [Download](https://www.virtualbox.org/wiki/Downloads)
- Ansible - [Installation](http://docs.ansible.com/ansible/latest/intro_installation.html)

```
make integration-tests
```

License
-------

[](#license)

(The MIT License) see LICENSE file for details...

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity95

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 56% 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 ~19 days

Recently: every ~75 days

Total

197

Last Release

616d ago

Major Versions

0.8.3 → 1.0.02018-01-18

1.97.0 → 2.0.02023-10-20

1.97.1 → 2.0.22024-09-09

PHP version history (5 changes)0.1.0PHP &gt;=5.3.3

1.0.0PHP &gt;=5.4

1.96.0PHP &gt;=5.6

2.0.0PHP &gt;=7.3

2.1.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/12ceafbc629c3019d7cd78dfec322d694f44e0df8741bc6044f4acbf99964ff8?d=identicon)[g4code](/maintainers/g4code)

---

Top Contributors

[![vladan-zoricic](https://avatars.githubusercontent.com/u/195801?v=4)](https://github.com/vladan-zoricic "vladan-zoricic (521 commits)")[![gomboc](https://avatars.githubusercontent.com/u/1145653?v=4)](https://github.com/gomboc "gomboc (252 commits)")[![ppavlovic](https://avatars.githubusercontent.com/u/2664974?v=4)](https://github.com/ppavlovic "ppavlovic (76 commits)")[![ivankoni](https://avatars.githubusercontent.com/u/570997?v=4)](https://github.com/ivankoni "ivankoni (25 commits)")[![vb-c-plicity](https://avatars.githubusercontent.com/u/101137972?v=4)](https://github.com/vb-c-plicity "vb-c-plicity (24 commits)")[![dsamardzija](https://avatars.githubusercontent.com/u/366252?v=4)](https://github.com/dsamardzija "dsamardzija (10 commits)")[![UrosPurtic](https://avatars.githubusercontent.com/u/52161020?v=4)](https://github.com/UrosPurtic "UrosPurtic (9 commits)")[![sanjamedic](https://avatars.githubusercontent.com/u/13198949?v=4)](https://github.com/sanjamedic "sanjamedic (5 commits)")[![zeljkosbgd](https://avatars.githubusercontent.com/u/4016203?v=4)](https://github.com/zeljkosbgd "zeljkosbgd (4 commits)")[![jopacicdev](https://avatars.githubusercontent.com/u/2921997?v=4)](https://github.com/jopacicdev "jopacicdev (2 commits)")[![sinisalackovic](https://avatars.githubusercontent.com/u/25299913?v=4)](https://github.com/sinisalackovic "sinisalackovic (1 commits)")[![rdohms](https://avatars.githubusercontent.com/u/94331?v=4)](https://github.com/rdohms "rdohms (1 commits)")

---

Tags

modelmapperdata mapperdomain

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/g4-data-mapper/health.svg)

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

###  Alternatives

[spatie/laravel-translatable

A trait to make an Eloquent model hold translations

2.4k23.0M413](/packages/spatie-laravel-translatable)[spatie/eloquent-sortable

Sortable behaviour for eloquent models

1.5k22.9M268](/packages/spatie-eloquent-sortable)[vlucas/spot2

Simple DataMapper built on top of Doctrine DBAL

605392.8k7](/packages/vlucas-spot2)[sleimanx2/plastic

Plastic is an Elasticsearch ODM and mapper for Laravel. It renders the developer experience more enjoyable while using Elasticsearch by providing a fluent syntax for mapping , querying and storing eloquent models.

508141.9k1](/packages/sleimanx2-plastic)[rolfvreijdenberger/izzum-statemachine

A superior statemachine library php &gt;= 5.3. Integrates with your domain models perfectly.

7425.5k](/packages/rolfvreijdenberger-izzum-statemachine)[wayofdev/laravel-cycle-orm-adapter

🔥 A Laravel adapter for CycleORM, providing seamless integration of the Cycle DataMapper ORM for advanced database handling and object mapping in PHP applications.

3516.7k3](/packages/wayofdev-laravel-cycle-orm-adapter)

PHPackages © 2026

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