seanmorris / bob
There is no license information available for the latest version (0.0.0) of this package.
Binary Object Bank - Serialize objects to binary while maintaing types
0.0.0
2023-11-04 06:49 UTC
Requires (Dev)
- simpletest/simpletest: ^1.1
This package is auto-updated.
Last update: 2025-01-04 09:31:54 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