Thanks to visit codestin.com
Credit goes to github.com

Skip to content

aeviiq/data-mapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aeviiq PHP Data Mapper

Why

To provide an easy way to map objects. In the first few releases this is mainly made to map something like a form model, which has optional values and setters, to a read-only version of the object, which could be used in whatever process comes after the form submission. This way the code stays decoupled from the form itself.

Installation

composer require aeviiq/data-mapper

Usage

// The target can be either an object or a string representing the class name of the object you want to map to
DynamicDataMapper::map($source, Foo::class);
DynamicDataMapper::map($source, $foo);

About

A library that dynamically maps properties between objects.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages