Skip to content

alternative to PHP serializing that recursively extracts public props from objects and reconstructs or hydrates them using reflection

Notifications You must be signed in to change notification settings

leongrdic/php-seriale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

alternative to PHP serializing that recursively extracts public properties from objects and reconstructs or hydrates them using reflection

install

composer require leongrdic/seriale

usage

use Le\Seriale\Seriale;
$seriale = new Seriale;

$someObject = new SomeClass();
$someObject->publicProp = 'test';

$extracted = $seriale->extract($someObject);
// ..later..
$restored = $seriale->hydrate(SomeClass::class, $extracted);

$someObject->publicProp === $restored->publicProp // true

About

alternative to PHP serializing that recursively extracts public props from objects and reconstructs or hydrates them using reflection

Topics

Resources

Stars

Watchers

Forks

Languages