2017 © Pedro Peláez
 

library databoomer

Utility to keep the data of a object through requests

image

brunnofoggia/databoomer

Utility to keep the data of a object through requests

  • Tuesday, March 27, 2018
  • by brunnofoggia
  • Repository
  • 0 Watchers
  • 0 Stars
  • 43 Installations
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

DataBoomer

Minimum PHP Version License, (*1)

Utility to keep the data of a object through requests, (*2)

By implementing this into a class, all the content stored into its "data" property will be held through the next requests, (*3)

usage

  1. Add in your class one of the following codes, (*4)

    // for session storage
    use \DataBoomer\Session;
    // for file storage
    use \DataBoomer\File; 
  2. Dont forget to implement serialize and unserialize. An basic example would be, (*5)

    public function __construct() {
        $this->unserialize();
    }
    
    public function __destruct() {
        $this->serialize();
    }
  3. Adding content to data, (*6)

    $this->addData('name', 'value'); // name can be split with using '.'
  4. Reading content to data, (*7)

    $this->getData('name');

advanced usage

  • How to change session uid where data from \DataBoomer\Session will be stored, (*8)

    public function generateUID() {
        $uid = my_uid_generator();
        return $uid;
    }
  • How to customize \DataBoomer\File directory, (*9)

    public static function getDir() {
        return __DIR__ . '/my_tmp_dir/';
    }

The Versions

27/03 2018

dev-master

9999999-dev https://bitbucket.org/brunnofoggia/databoomer

Utility to keep the data of a object through requests

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

27/03 2018

1.2.0

1.2.0.0 https://bitbucket.org/brunnofoggia/databoomer

Utility to keep the data of a object through requests

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

26/03 2018

1.1.4

1.1.4.0 https://bitbucket.org/brunnofoggia/databoomer

Utility to keep the data of a object through requests

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

09/01 2018

1.1.3

1.1.3.0 https://bitbucket.org/brunnofoggia/databoomer

Utility to keep the data of a object through requests

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

29/08 2017

1.1.2

1.1.2.0 https://bitbucket.org/brunnofoggia/databoomer

Utility to keep the data of a object through requests

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

22/05 2017

1.1.1

1.1.1.0 https://bitbucket.org/brunnofoggia/databoomer

Utility to keep the data of a object through requests

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

20/01 2017

1.1.0

1.1.0.0

Utility to keep the data of a object through requests

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

26/02 2016

1.0

1.0.0.0

  Sources   Download

The Requires

  • php >=5.4.0