Skip to content

flexicsystems/recaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📖 Recaster

This package allows to recast php objects to object of other class.


Installation

Run

composer require flexic/recaster

to install flexic/recaster.


Cast to object of other class

$recaster = new Flexic\Recaster\Recaster($inputObject);
$object = $recaster->toClass(TargetClass::class);

Cast to array

$recaster = new Flexic\Recaster\Recaster($inputObject);
$arrayOfObject = $recaster->toArray();

License

This package is licensed using the GNU License.

Please have a look at LICENSE.md.


Donate