Open
Description
Description
This bundle ease the use of the CBOR decoder.
It could be great to allow the use of the decoder as a serializer decoder.
Also, the encoding process could be used.
Example
Similar to the example from the documentation:
use App\Model\Person;
$person = new Person();
$person->setName('foo');
$person->setAge(99);
$person->setSportsperson(false);
$cborContent = $serializer->serialize($person, 'cbor');
// $cborContent contains A4646E616D6563666F6F6361676518636C73706F727473706572736F6EF469637265617465644174F6
$person = $serializer->deserialize($cborContent, Person::class, 'cbor');