Download the PHP package kokoroe/mapper without Composer
On this page you can find all versions of the php package kokoroe/mapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kokoroe/mapper
More information about kokoroe/mapper
Files in kokoroe/mapper
Download kokoroe/mapper
More information about kokoroe/mapper
Files in kokoroe/mapper
Vendor kokoroe
Package mapper
Short Description A PHP5.5+ mapper to convert array of data into nested PHP objects
License MIT
Package mapper
Short Description A PHP5.5+ mapper to convert array of data into nested PHP objects
License MIT
Please rate this library. Is it a good library?
Informations about the package mapper
Mapper PHP
Install
Add kokoroe/mapper
to your composer.json
:
% php composer.phar require kokoroe/mapper:~1.0
Usage
class User
{
protected $id;
protected $name;
public function setId($id)
{
$this->id = $id;
}
public function setName($name)
{
$this->name = $name;
}
}
$article = Mapper::hydrate([
'title' => 'test',
'content' => 'foo',
'author' => [
'id' => 1,
'name' => 'Axel'
],
'tags' => ['test', 'mapping']
], Article::class);
var_dump($article);
License
mapper-php is licensed under the MIT license.
All versions of mapper with dependencies
PHP Build Version
Package Version
No informations.
The package kokoroe/mapper contains the following files
Loading the files please wait ....