1. Go to this page and download the library: Download pleb/vcardio library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
$vCardsCollection = (new Pleb\VCardIO\VCardsCollection())
->addVCard($vCard1)
->addVCard($vCard2);
// OR
$vCardsCollection = new Pleb\VCardIO\VCardsCollection([$vCard1, $vCard2]);
foreach($vCardsCollection as $vCard){
// ...
}
// OR
$vCard = $vCardsCollection->first();
// OR
$vCard = $vCardsCollection->getVCard(0); // 1,2,...