seanmorris / bob
Binary Object Bank - Serialize objects to binary while maintaing types
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/seanmorris/bob
Requires (Dev)
- simpletest/simpletest: ^1.1
This package is auto-updated.
Last update: 2025-10-04 11:10:05 UTC
README
Binary Object Bank
Store objects in binary. Maintain references and types.
Plans are in the works for a JavaScript version.
Usage:
<?php // Encode a value into a blob: $blob = \SeanMorris\Bob\Bank::encode($someValue); // Decode it back into whatever: $someValue = \SeanMorris\Bob\Bank::decode($blob);
Run Tests:
$ php runTests.php SeanMorris\Bob\Test\TextTest OK Test cases run: 1/1, Passes: 45396, Failures: 0, Exceptions: 0 SeanMorris\Bob\Test\NumberTest OK Test cases run: 1/1, Passes: 27344, Failures: 0, Exceptions: 0 SeanMorris\Bob\Test\ListTest OK Test cases run: 1/1, Passes: 27488, Failures: 0, Exceptions: 0 SeanMorris\Bob\Test\AssocTest OK Test cases run: 1/1, Passes: 27488, Failures: 0, Exceptions: 0 SeanMorris\Bob\Test\ObjectTest OK Test cases run: 1/1, Passes: 512, Failures: 0, Exceptions: 0