PHP Classes

Binary serialization: Serialize and unserialize values in binary format

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 49%Total: 624 All time: 5,065 This week: 71Up
Version License PHP version Categories
bserialization 1.0.0BSD License4.0Data types
Description 

Author

This class can be used to serialize and unserialize values in binary format.

It can take a scalar value, array or object and generates string of platform independent binary data that represents the value.

The class can also do the opposite, i.e. unserialize binary data previously serialized by this class and rebuilds the original value.

Innovation Award
PHP Programming Innovation award nominee
March 2009
Number 4


Prize: One book of choice by O'Reilly
PHP provides functions to serialize variable values, so they can be stored or sent over a network as a single string.

The unserialize function reverses the process by rebuilding the original variable value from the serialized value.

PHP serializes values into text strings. This class provides an alternative serialization method that uses a binary format to represent the serialized values.

This way, serialized values take less space to store and less time to transmit over a network.

Manuel Lemos
Picture of Cesar D. Rodas
  Performance   Level  
Name: Cesar D. Rodas is available for providing paid consulting. Contact Cesar D. Rodas .
Classes: 38 packages by
Country: Paraguay Paraguay
Age: 37
All time rank: 71 in Paraguay Paraguay
Week rank: 43 Down1 in Paraguay Paraguay Equal
Innovation award
Innovation award
Nominee: 25x

Winner: 5x

  Files folder image Files (3)  
File Role Description
Plain text file bserialize.php Class Main class
Accessible without login Plain text file error.php Aux. Human readable error texts
Accessible without login Plain text file test.php Test Class test (and also sample)

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:624
This week:0
All time:5,065
This week:71Up
 User Ratings  
 
 All time
Utility:70%StarStarStarStar
Consistency:62%StarStarStarStar
Documentation:-
Examples:-
Tests:79%StarStarStarStar
Videos:-
Overall:49%StarStarStar
Rank:2808