Category: parsing

How can I parse a vCard with many contacts and store the data into my database?

I created a parser for vCards: class vcardparser extends AbstractController { public function __construct(EntityManagerInterface $em) { $this->em = $em; } public function getVcard($vcard) { $path = ‘../vendor/lukaspijak/vcard-parser/’; include($path.’vCard.php’); $vCard = new vCard($path.$vcard); $count = count($vCard); // get Data from vCard…