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

This package is auto-updated.

Last update: 2024-04-04 07:49:07 UTC


README

Binary Object Bank

Store objects in binary. Maintain references and types.

Plans are in the works for a JavaScript version.

Build Status

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