2017 © Pedro Peláez
 

library exhumer

Small models unserializer tool.

image

voilab/exhumer

Small models unserializer tool.

  • Wednesday, September 23, 2015
  • by karamasoff
  • Repository
  • 0 Watchers
  • 0 Stars
  • 57 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 21 Versions
  • 0 % Grown

The README.md

PHP Exhumer

Small models unserializer tool. Takes an array of data and create a class instance based on that data., (*1)

How to Install

using Composer

Create a composer.json file in your project root:, (*2)

{
    "require": {
        "voilab/exhumer": "0.2.*"
    }
}

Then run the following composer command:, (*3)

$ php composer.phar install

Usage

Exemple class, (*4)

class User {
    private $name = '';
    private $password = '';
    private $value = 0;

    public function getValue() {
        return $this->value + 1;
    }
}

Instantiate an Exhumer for a class, (*5)

$exhumer = new \Voilab\Exhumer\Exhumer('User');

Unbury

$object = $exhumer->unbury(
    array(
        'name' => 'username',
        'password' => 'password123',
        'value' => 41,
        'dummy' => 'test'
    )
);

Note that dummy is ignored since it's not present in the base class., (*6)

object(User)[6]
  private 'name' => string 'username' (length=8)
  private 'password' => string 'password123' (length=11)
  private 'value' => int 41

Will return 42, (*7)

$object->getValue();

Bury

$data = $exhumer->bury($object);
array (size=3)
  'name' => string 'username' (length=8)
  'password' => string 'password123' (length=11)
  'value' => int 41

Authors

Alexandre Ravey, (*8)

License

MIT Public License, (*9)

The Versions

23/09 2015

dev-master

9999999-dev https://bitbucket.org/voilab/exhumer

Small models unserializer tool.

  Sources   Download

MIT

The Requires

 

23/09 2015

0.9.7

0.9.7.0 https://bitbucket.org/voilab/exhumer

Small models unserializer tool.

  Sources   Download

MIT

The Requires

 

23/09 2015

dev-develop

dev-develop https://bitbucket.org/voilab/exhumer

Small models unserializer tool.

  Sources   Download

MIT

The Requires

 

23/01 2015

0.9.6

0.9.6.0 https://bitbucket.org/voilab/exhumer

Small models unserializer tool.

  Sources   Download

MIT

The Requires

 

07/10 2014

0.9.5

0.9.5.0 https://bitbucket.org/voilab/exhumer

Small models unserializer tool.

  Sources   Download

MIT

The Requires

 

20/09 2014

0.9.4

0.9.4.0 https://bitbucket.org/voilab/exhumer

Small models unserializer tool.

  Sources   Download

MIT

The Requires

 

24/08 2014

0.9.3

0.9.3.0 https://bitbucket.org/voilab/exhumer

Small models unserializer tool.

  Sources   Download

MIT

The Requires

 

25/07 2014

0.9.2

0.9.2.0 https://bitbucket.org/voilab/exhumer

Small models unserializer tool.

  Sources   Download

MIT

The Requires

 

24/07 2014

0.9.1

0.9.1.0 https://bitbucket.org/voilab/exhumer

Small models unserializer tool.

  Sources   Download

MIT

The Requires

 

24/07 2014

0.9.0

0.9.0.0 https://bitbucket.org/voilab/exhumer

Small models unserializer tool.

  Sources   Download

MIT

The Requires

 

16/06 2014

0.8

0.8.0.0 https://bitbucket.org/voilab/exhumer

Small models unserializer tool.

  Sources   Download

MIT

The Requires

 

11/06 2014

0.7.2

0.7.2.0 https://bitbucket.org/voilab/exhumer

Small models unserializer tool.

  Sources   Download

MIT

The Requires

 

22/05 2014

0.7.1

0.7.1.0 https://bitbucket.org/voilab/exhumer

Small models unserializer tool.

  Sources   Download

MIT

The Requires

 

01/05 2014

0.7.0

0.7.0.0 https://bitbucket.org/voilab/exhumer

Small models unserializer tool.

  Sources   Download

MIT

The Requires

 

27/04 2014

0.6.0

0.6.0.0 https://bitbucket.org/voilab/exhumer

Small models unserializer tool.

  Sources   Download

MIT

The Requires

 

27/04 2014

0.5.1

0.5.1.0 https://bitbucket.org/voilab/exhumer

Small models unserializer tool.

  Sources   Download

MIT

The Requires

 

27/04 2014

0.5.0

0.5.0.0 https://bitbucket.org/voilab/exhumer

Small models unserializer tool.

  Sources   Download

MIT

The Requires

 

26/04 2014

0.4.0

0.4.0.0 https://bitbucket.org/voilab/exhumer

Small models unserializer tool.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

13/04 2014

0.3.0

0.3.0.0 https://bitbucket.org/voilab/exhumer

Small models unserializer tool.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

30/03 2014

0.2.0

0.2.0.0 https://bitbucket.org/voilab/exhumer

Small models unserializer tool.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

29/03 2014

0.1.0

0.1.0.0 https://bitbucket.org/voilab/exhumer

Small models unserializer tool.

  Sources   Download

MIT

The Requires

  • php >=5.5.0