2017 © Pedro Peláez
 

library reserializer

image

jedi58/reserializer

  • Wednesday, April 18, 2018
  • by jedi58
  • Repository
  • 2 Watchers
  • 2 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Reserializer

Build Status StyleCI Code Climate Coverage Status, (*1)

PHP class that will take a serialised object and parse it, ignoring the sizes specified. This is useful when serialized objects are corrupted and need fixing, (*2)

Usage

Reserializer::parse('s:21:"https://www.google.com";');

The above example contains an invalid serialized object as the string is one character longer than it should be. The parse function will take this, ignore the suggested length and will return the string ready to be reserialised. Alternatively, the class can do the whole process itself:, (*3)

Reserializer::reserialize('s:21:"https://www.google.com";')

The expected output for this is s:22:"https://www.google.com";. It is possible to use this for more complicated examples of type bool, int, string, array, and objects. In the case of objects they will however be converted into stdClass., (*4)

Testing

There are a number of unit tests which can be executed by running the following from your checkout, (*5)

$  phpunit

The Versions

18/04 2018

dev-master

9999999-dev https://github.com/jedi58/reserializer

  Sources   Download

MIT

The Requires

 

The Development Requires

by David G. Paul

data serialize objects fix

18/04 2018

v1.0.1

1.0.1.0 https://github.com/jedi58/reserializer

  Sources   Download

MIT

The Requires

 

The Development Requires

by David G. Paul

data serialize objects fix

20/02 2016

v1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by David G. Paul