Package Proposal: Vcard_Parse

From: Date: Mon, 17 Mar 2003 23:05:42 +0000
Subject: Package Proposal: Vcard_Parse
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-14380@lists.php.net to get a copy of this message
Hi, all, I propose a new PEAR package to parse vCards into a structured array. Developers can then do what they like with the data (e.g., insert into a table). Not sure where this class would go in the PEAR hierarchy (Structures? Tools & Utilities? perhaps Mail?). You can download the class file and view instructions here:
    http://ciaweb.net/free/vcard_parse/
Example usage:
    require_once 'Vcard_Parse.class.php';
    $parse = new Vcard_Parse();
    // parse from a file
    $cards = $parse->fromFile('address.vcf');
    print_r($cards);
    // parse from a block of text
    $cards = $parse->fromText($text);
    print_r($cards);
Thanks in advance for your comments and criticism. Cheers, Paul M. Jones

« previous php.pear.dev (#14380) next »