vcard icon indicating copy to clipboard operation
vcard copied to clipboard

Telephone displayed wrong in vcf file

Open janmoes96 opened this issue 2 years ago • 0 comments

Hi I'm using your package in combination with laravel.

 public function createCard(User $user){
        // var_dump($user);
        // die();

        $vcard = new VCard();
        $vcard->add(new Name($user->l_name, $user->name, '', '', ''))
        ->add(new Telephone($user->phone, Type::home()))
        ->add(new Email($user->email, Type::home()));

        $formatter = new Formatter(new VcfFormatter(), 'vcard-export');
        $formatter->addVCard($vcard);
        return $formatter->download();
    }```

 the code does work, but the phonenumber is being printed in the vcf file like `tel:0715557031`

janmoes96 avatar Feb 27 '23 15:02 janmoes96