$vCardsCollection = Pleb\VCardIO\VCardParser::parseFile('./contacts.vcf');
Give a string to the parser to obtain same result.
$vCardsRawData = 'BEGIN:VCARD
VERSION:4.0
FN:Jeffrey Lebowski
BDAY:19421204
X-MAIN-HOBBY:Bowling
END:VCARD';
$vCardsCollection = Pleb\VCardIO\VCardParser::parseRaw($vCardsRawData);
The result of parsing is a VCardsCollection object.
View the collection documentation for more information.