Skip to content

Serializer Encoder/Decoder #41

Open
@Spomky

Description

@Spomky

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');

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions