https://github.com/hiqdev/php-data-mapper
Data Mapper
https://github.com/hiqdev/php-data-mapper
hacktoberfest
Last synced: 12 months ago
JSON representation
Data Mapper
- Host: GitHub
- URL: https://github.com/hiqdev/php-data-mapper
- Owner: hiqdev
- License: bsd-3-clause
- Created: 2020-06-01T13:04:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-02-13T09:52:10.000Z (over 1 year ago)
- Last Synced: 2025-05-28T02:47:56.284Z (about 1 year ago)
- Topics: hacktoberfest
- Language: PHP
- Size: 246 KB
- Stars: 7
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Data Mapper
**Data Mapper**
[](https://packagist.org/packages/hiqdev/php-data-mapper)
[](https://packagist.org/packages/hiqdev/php-data-mapper)
[](https://travis-ci.org/hiqdev/php-data-mapper)
[](https://scrutinizer-ci.com/g/hiqdev/php-data-mapper/)
[](https://scrutinizer-ci.com/g/hiqdev/php-data-mapper/)
[](https://www.versioneye.com/php/hiqdev:php-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 1 | Hydration, Attribution, Specification | CustomerHydrator, CustomerAttribution
Data Mapper 2 | Repository, Query, | CustomerRepository, CustomerQuery
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 package is through [composer](http://getcomposer.org/download/).
Either run
```sh
php composer.phar require "hiqdev/php-data-mapper"
```
or add
```json
"hiqdev/php-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/)