isaactorresmichel / phpserializer
PHP Serializer is a Factory to get a SerDes class optimized for your PHP installation. Credits on original idea to https://www.drupal.org/project/couchbasedrupal
v1.0.0
2017-08-04 18:09 UTC
Requires (Dev)
- phpunit/phpunit: ^6.3
This package is not auto-updated.
Last update: 2025-03-30 05:59:51 UTC
README
PHP Serializer is a Factory to get a SerDes class optimized for your PHP installation.
<?php include 'vendor/autoload.php'; $sd_factory = new isaactorresmichel\phpserializer\SerializerFactory(); $data = $sd_factory->getSerializer()->serialize("Hello World!"); $success = false; $data = $sd_factory->getSerializer()->unserialize($data, $success); if($success){ echo "Unserialize was successful: {$data}"; } else { echo "Failed!"; }
Credits on original idea to David Garcia on https://www.drupal.org/project/couchbasedrupal