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

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

hiqdev/yii2-data-mapper
=======================

Data Mapper for Yii2

0.1.0(6y ago)1516.9k4[1 issues](https://github.com/hiqdev/yii2-data-mapper/issues)1BSD-3-ClausePHP

Since Oct 27Pushed 7mo ago4 watchersCompare

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

READMEChangelogDependencies (3)Versions (4)Used By (1)

Yii2 Data Mapper
================

[](#yii2-data-mapper)

**Data Mapper for Yii2**

[![Latest Stable Version](https://camo.githubusercontent.com/17aba69127a196e6adeae0436d1fd6e74142e11d0cba3aeec1b32cf72f402900/68747470733a2f2f706f7365722e707567782e6f72672f6869716465762f796969322d646174612d6d61707065722f762f737461626c65)](https://packagist.org/packages/hiqdev/yii2-data-mapper)[![Total Downloads](https://camo.githubusercontent.com/929b05ae1cefffb3f9e0f863cb32be196fbeb83c99f2880fd0de6db8d974f8f7/68747470733a2f2f706f7365722e707567782e6f72672f6869716465762f796969322d646174612d6d61707065722f646f776e6c6f616473)](https://packagist.org/packages/hiqdev/yii2-data-mapper)[![Build Status](https://camo.githubusercontent.com/429779bc192e8d2bed5fd44f92b2781e9fe35bcb307800ecdc48add553545614/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6869716465762f796969322d646174612d6d61707065722e737667)](https://travis-ci.org/hiqdev/yii2-data-mapper)[![Scrutinizer Code Coverage](https://camo.githubusercontent.com/53a909349aba5cd65739d67005f26b3a826044cd34a88f21d34dbc7dad3164a5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6869716465762f796969322d646174612d6d61707065722e737667)](https://scrutinizer-ci.com/g/hiqdev/yii2-data-mapper/)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/62b5d37e5a439553e7742f0a594149567cb5c9f529818cfbf0d690cd2dbbcd4b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6869716465762f796969322d646174612d6d61707065722e737667)](https://scrutinizer-ci.com/g/hiqdev/yii2-data-mapper/)[![Dependency Status](https://camo.githubusercontent.com/89fe0e1783df707dea200f8a3f7986d6e86c305367064276a40393290c1d8d75/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f6869716465763a796969322d646174612d6d61707065722f6465762d6d61737465722f62616467652e737667)](https://www.versioneye.com/php/hiqdev:yii2-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 MapperRepository, SpecificationCustomerRepostoryData AccessQuery, QueryBuilderPDO, ActiveRecord, HiArtDATAStorageDB, API, Queue, File SystemInstallation
------------

[](#installation)

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

Either run

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

or add

```
"hiqdev/yii2-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

Maintenance43

Moderate activity, may be stable

Popularity33

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.5% 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 ~271 days

Total

3

Last Release

2219d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/99106256c24a8cb23871b99fa90e48f37f1aa71608c185759b7d2a88683a5918?d=identicon)[hiqsol](/maintainers/hiqsol)

---

Top Contributors

[![hiqsol](https://avatars.githubusercontent.com/u/11820365?v=4)](https://github.com/hiqsol "hiqsol (148 commits)")[![SilverFire](https://avatars.githubusercontent.com/u/4499203?v=4)](https://github.com/SilverFire "SilverFire (63 commits)")[![tafid](https://avatars.githubusercontent.com/u/3338188?v=4)](https://github.com/tafid "tafid (2 commits)")[![VadymHrechukha](https://avatars.githubusercontent.com/u/114911409?v=4)](https://github.com/VadymHrechukha "VadymHrechukha (2 commits)")[![strorch](https://avatars.githubusercontent.com/u/23340907?v=4)](https://github.com/strorch "strorch (1 commits)")

---

Tags

hacktoberfestdatabaseormyii2data mapper

### Embed Badge

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

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

###  Alternatives

[laravel-doctrine/migrations

Doctrine Migrations for Laravel

782.8M16](/packages/laravel-doctrine-migrations)[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)

PHPackages © 2026

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