2017 © Pedro Peláez
 

library serialize-data-fixer

Fix corrupted serialized data

image

b-poignant/serialize-data-fixer

Fix corrupted serialized data

  • Thursday, December 7, 2017
  • by B-Poignant
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 20 % Grown

The README.md

PHP-serialize-data-fixer

Fix corrupted serialized data, (*1)

Getting Started

First repo., (*2)

Installing

composer require b-poignant/serialize-data-fixer

Using

A step by step series of examples that tell you have to get a development env running, (*3)

Say what the step will be, (*4)

use UnserializeFixer\Fixer;
require_once('vendor/autoload.php');

var_dump(Fixer::run('a:3:{s:3:"foo";s:3:"bar";s:3:"int";i:8;i:9;s:4:"test";}'));

You can set config like this :, (*5)

use UnserializeFixer\Fixer;
use UnserializeFixer\Config;

require_once('vendor/autoload.php');

$config = new Config();
$config->setlogEnabled(false);
$config->setResolveMethod('complete');

Fixer::setConfig($config);

var_dump(Fixer::run('a:3:{s:3:"foo";s:3:"bar";s:3:"int";i:8;i:9;s:4:"test";}'));

End with an example of getting some data out of the system or using it for a little demo, (*6)

Running the tests

Explain how to run the automated tests for this system, (*7)

Break down into end to end tests

Explain what these tests test and why, (*8)

Give an example

And coding style tests

You can run php-unit to run few tests on sample file, (*9)

phpunit --configuration phpunit.xml --testsuite Sample

Deployment

Add additional notes about how to deploy this on a live system, (*10)

Github

  • https://github.com/B-Poignant/PHP-serialize-data-fixer

Me

  • https://www.linkedin.com/in/benjaminpoignant/
  • https://stackoverflow.com/users/3224358/benjamin-poignant

The Versions

07/12 2017

dev-master

9999999-dev

Fix corrupted serialized data

  Sources   Download

MIT

The Development Requires

by B.Poignant

php serialize unserialize corrupted-data