https://github.com/hiqdev/yii2-data-mapper
Data Mapper for Yii2
https://github.com/hiqdev/yii2-data-mapper
hacktoberfest
Last synced: 12 months ago
JSON representation
Data Mapper for Yii2
- Host: GitHub
- URL: https://github.com/hiqdev/yii2-data-mapper
- Owner: hiqdev
- License: bsd-3-clause
- Created: 2017-12-04T08:41:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-28T11:04:13.000Z (over 3 years ago)
- Last Synced: 2024-10-25T19:58:20.981Z (over 1 year ago)
- Topics: hacktoberfest
- Language: PHP
- Size: 230 KB
- Stars: 12
- Watchers: 6
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Yii2 Data Mapper
**Data Mapper for Yii2**
[](https://packagist.org/packages/hiqdev/yii2-data-mapper)
[](https://packagist.org/packages/hiqdev/yii2-data-mapper)
[](https://travis-ci.org/hiqdev/yii2-data-mapper)
[](https://scrutinizer-ci.com/g/hiqdev/yii2-data-mapper/)
[](https://scrutinizer-ci.com/g/hiqdev/yii2-data-mapper/)
[](https://www.versioneye.com/php/hiqdev:yii2-data-mapper/dev-master)
[Data Mapper] based on Yii2 data base abstraction.
Deliberately simple (no implicit behavior) library aimed to separate data persistence logics from data own logics.
## Idea
Abstraction | Implementation | Examples
-------------|-----------------------------|--------------------------------------
Domain Layer | Entity, RepositoryInterface | Customer, CustomerRepositoryInterface
Data Mapper | Repository, Specification | CustomerRepostory
Data Access | Query, QueryBuilder | PDO, ActiveRecord, HiArt
DATA | Storage | DB, API, Queue, File System
[Data Mapper]: https://en.wikipedia.org/wiki/Data_mapper_pattern
## Installation
The preferred way to install this yii2-extension is through [composer](http://getcomposer.org/download/).
Either run
```sh
php composer.phar require "hiqdev/yii2-data-mapper"
```
or add
```json
"hiqdev/yii2-data-mapper": "*"
```
to the require section of your composer.json.
## 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 (http://hiqdev.com/)