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

Parse vCard from QR-code #121

Closed
anoopzoondia opened this issue Mar 12, 2018 · 11 comments
Closed

Parse vCard from QR-code #121

anoopzoondia opened this issue Mar 12, 2018 · 11 comments

Comments

@anoopzoondia
Copy link

Storing the QR code in a vcard format. Is there any option in this module to parse the vcard that is embed in a QR code that is saved in a png or jpeg format? Or the string vcard can we process using this library?

@jeroendesloovere
Copy link
Owner

You can parse the vCard string from the QR Code.
https://github.com/jeroendesloovere/vcard#parsing-examples

@anoopzoondia
Copy link
Author

But i can see only the option to parse from the .vcf file only, not from the image files like .png or .jpeg. Can i just rename the .vcf extension to that .png or .jpeg

@jeroendesloovere
Copy link
Owner

jeroendesloovere commented Mar 12, 2018

Handling QR codes is not something jeroendesloovere/vcard library handles.
You need another library to read the "text" from the QR-image.
With that "text" (= string) you can probably parse it to a vCard.

That is why I'm closing this one.

@jeroendesloovere jeroendesloovere changed the title Parse vcrad from qrcode Parse vCard from QR-code Mar 12, 2018
@anoopzoondia
Copy link
Author

Yes got it clear.

@anoopzoondia
Copy link
Author

Will this plugin work in php 7? When i run composer command i got like this

image

@jeroendesloovere
Copy link
Owner

jeroendesloovere commented Mar 12, 2018

Can you try composer install jeroendesloovere/vcard:^1.6 ?

Updated:
composer require jeroendesloovere/vcard:^1.6

@anoopzoondia
Copy link
Author

This is also not working for me

@jeroendesloovere
Copy link
Owner

Sorry, typo, should be: composer require jeroendesloovere/vcard:^1.6

@anoopzoondia
Copy link
Author

image
Again same issue.

@jeroendesloovere
Copy link
Owner

Can you remove the vendor folder and the composer.lock file?
Then execute the command again.
Are you using the vcard-bundle?

@anoopzoondia
Copy link
Author

No

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

2 participants