Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Telephone displayed wrong in vcf file #211

Open
janmoes96 opened this issue Feb 27, 2023 · 0 comments
Open

Telephone displayed wrong in vcf file #211

janmoes96 opened this issue Feb 27, 2023 · 0 comments

Comments

@janmoes96
Copy link

janmoes96 commented Feb 27, 2023

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`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant