Skip to content

Implementation of simple data mapper design pattern in PHP. It uses external API and mapped the data in to the in-memory class object.

Notifications You must be signed in to change notification settings

majidkarimizadeh/data-mapper-design-pattern-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Data Mapper Design Pattern in PHP

  • It transfers the data between persistent layer and in memory layer.
  • It keeps the in memory layer and the persistent data layer independent of each other.

Persistance Layers

In memory Layers

User {
    getId
    getEmail
}

Mapper

We will implement UserMapper class in order to map external api data in to User class and vise versa.

YouTube link

https://youtu.be/oaiwS5KFHEs

About

Implementation of simple data mapper design pattern in PHP. It uses external API and mapped the data in to the in-memory class object.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages