CBOR encoder and decode for PHP.