2017 © Pedro Peláez
 

library serializer

Very simple library to serialize/unserialize PHP objects.

image

andytruong/serializer

Very simple library to serialize/unserialize PHP objects.

  • Monday, January 19, 2015
  • by andytruong
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,945 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Serializer Build Status Latest Stable Version License

Very simple Serializer/Unserializer for PHP objects., (*1)

If we have this very simple class:, (*2)

<?php
class Person {
    private $name;
    public function getName() { return $this->name; }
    public function setName($name) { $this->name = $name; }
}

Then we can easy create new Person object from a structured array:, (*3)

<?php
$person = new Person();
$person->setName('Johnson American');
(new AndyTruong\Serializer\Serializer())
    ->toArray($person); // ['name' => 'Johnson American']

We can also easy create new Person object from a structured array:, (*4)

<?php
$person = (new AndyTruong\Serializer\Unserializer())
    ->fromArray(['name' => 'Johnson America']);

The library also supports Trait, nested objects, … check ./resources/docs for more informations., (*5)

The Versions

19/01 2015

0.1.x-dev

0.1.9999999.9999999-dev https://github.com/andytruong/serializer

Very simple library to serialize/unserialize PHP objects.

  Sources   Download

MIT

The Requires

 

The Development Requires

json serializer

10/09 2014

v0.1.4

0.1.4.0 https://github.com/andytruong/serializer

Very simple library to serialize/unserialize PHP objects.

  Sources   Download

MIT

The Requires

 

The Development Requires

json serializer

05/09 2014

v0.1.3

0.1.3.0 https://github.com/andytruong/serializer

Very simple library to serialize/unserialize PHP objects.

  Sources   Download

MIT

The Requires

  • php >=5.3.8

 

The Development Requires

json serializer

22/08 2014

v0.1.2

0.1.2.0 https://github.com/andytruong/serializer

Very simple library to serialize/unserialize PHP objects.

  Sources   Download

MIT

The Requires

  • php >=5.3.8

 

The Development Requires

json serializer

01/08 2014

v0.1.1

0.1.1.0 https://github.com/andytruong/serializer

Very simple library to serialize/unserialize PHP objects.

  Sources   Download

MIT

The Requires

  • php >=5.3.8

 

The Development Requires

json serializer

15/07 2014

v0.1.0

0.1.0.0 https://github.com/andytruong/serializer

Very simple library to serialize/unserialize PHP objects.

  Sources   Download

MIT

The Requires

  • php >=5.3.8

 

The Development Requires

json serializer