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

ActiveYii2-extension[Database &amp; ORM](/categories/database)

hiqdev/php-data-mapper
======================

Data Mapper

1.3.0(4y ago)811.2k5BSD-3-ClausePHP

Since Sep 15Pushed 4mo ago4 watchersCompare

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

READMEChangelogDependencies (5)Versions (4)Used By (0)

Data Mapper
===========

[](#data-mapper)

**Data Mapper**

[![Latest Stable Version](https://camo.githubusercontent.com/981452fc8f3b48df1c2538733debac4ccb57c4151fadc448dc90a39bc838ba38/68747470733a2f2f706f7365722e707567782e6f72672f6869716465762f7068702d646174612d6d61707065722f762f737461626c65)](https://packagist.org/packages/hiqdev/php-data-mapper)[![Total Downloads](https://camo.githubusercontent.com/ffbf5ae6e38a88e94e2004fef1f751a96f39d11467d48f64c371b96822d26636/68747470733a2f2f706f7365722e707567782e6f72672f6869716465762f7068702d646174612d6d61707065722f646f776e6c6f616473)](https://packagist.org/packages/hiqdev/php-data-mapper)[![Build Status](https://camo.githubusercontent.com/e7f2ef5c30f6f4b0bf8925e63b784cea1bb913109a2753553d2f14196ebd8b29/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6869716465762f7068702d646174612d6d61707065722e737667)](https://travis-ci.org/hiqdev/php-data-mapper)[![Scrutinizer Code Coverage](https://camo.githubusercontent.com/7cafca33b5315bb02847f0b89316e94aeb097f229c243edfe7223c01d0f8d04b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6869716465762f7068702d646174612d6d61707065722e737667)](https://scrutinizer-ci.com/g/hiqdev/php-data-mapper/)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a28de5988fdde13aea92b834b8a707a6091d9dff6dda0747552e3d3afcf2ae23/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6869716465762f7068702d646174612d6d61707065722e737667)](https://scrutinizer-ci.com/g/hiqdev/php-data-mapper/)[![Dependency Status](https://camo.githubusercontent.com/84e8f1505167865733b3c75e5c4ff9aec833a45505455bb0f5066a3f3e6f8bab/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f6869716465763a7068702d646174612d6d61707065722f6465762d6d61737465722f62616467652e737667)](https://www.versioneye.com/php/hiqdev:php-data-mapper/dev-master)

[Data Mapper](https://en.wikipedia.org/wiki/Data_mapper_pattern) based on Yii2 data base abstraction.

Deliberately simple (no implicit behavior) library aimed to separate data persistence logics from data own logics.

Idea
----

[](#idea)

AbstractionImplementationExamplesDomain LayerEntity, RepositoryInterfaceCustomer, CustomerRepositoryInterfaceData Mapper 1Hydration, Attribution, SpecificationCustomerHydrator, CustomerAttributionData Mapper 2Repository, Query,CustomerRepository, CustomerQueryData AccessQuery, QueryBuilderPDO, ActiveRecord, HiArtDATAStorageDB, API, Queue, File SystemInstallation
------------

[](#installation)

The preferred way to install this package is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require "hiqdev/php-data-mapper"
```

or add

```
"hiqdev/php-data-mapper": "*"
```

to the require section of your composer.json.

License
-------

[](#license)

This project is released under the terms of the BSD-3-Clause [license](LICENSE). Read more [here](http://choosealicense.com/licenses/bsd-3-clause).

Copyright © 2017-2018, HiQDev ()

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance52

Moderate activity, may be stable

Popularity31

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60.3% 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 ~0 days

Total

2

Last Release

1705d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/790fd24da129907d373559f60c6994f664f06e3f518502c03580cc9f3594615e?d=identicon)[hiqdev](/maintainers/hiqdev)

---

Top Contributors

[![hiqsol](https://avatars.githubusercontent.com/u/11820365?v=4)](https://github.com/hiqsol "hiqsol (158 commits)")[![SilverFire](https://avatars.githubusercontent.com/u/4499203?v=4)](https://github.com/SilverFire "SilverFire (88 commits)")[![VadymHrechukha](https://avatars.githubusercontent.com/u/114911409?v=4)](https://github.com/VadymHrechukha "VadymHrechukha (7 commits)")[![tafid](https://avatars.githubusercontent.com/u/3338188?v=4)](https://github.com/tafid "tafid (5 commits)")[![strorch](https://avatars.githubusercontent.com/u/23340907?v=4)](https://github.com/strorch "strorch (4 commits)")

---

Tags

hacktoberfestdatabaseormyii2data mapper

### Embed Badge

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

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

###  Alternatives

[laravel-doctrine/migrations

Doctrine Migrations for Laravel

782.8M16](/packages/laravel-doctrine-migrations)[hiqdev/yii2-data-mapper

Data Mapper for Yii2

1516.9k1](/packages/hiqdev-yii2-data-mapper)[laravel-doctrine/acl

ACL for Laravel and Doctrine

44445.3k7](/packages/laravel-doctrine-acl)[laravel-doctrine/fluent

A fluent PHP mapping driver for Doctrine2.

43430.3k13](/packages/laravel-doctrine-fluent)[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)[cycle/active-record

Provides a simple way to work with your database using Active Record pattern and Cycle ORM

671.3k3](/packages/cycle-active-record)

PHPackages © 2026

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