vCard PHP - A vCard Address Book
Download
Download the latest release from
http://sourceforge.net/projects/vcardphp/.
Scroll down to the Latest File Releases section and select the Download link.
Example
What it does
-
Parses and prints an address book file consisting of one or more vCards.
-
Supports both the vCard version 2.1 and 3.0 syntax.
-
Supports the CATEGORIES
property and provides filtering using the cat query parameter.
-
Provides an internal stylesheet or allows an external stylesheet to be specified
using the style query parameter.
What it does not do
-
Property groups such as A.N.
-
Binary encoded data such as images.
-
Nested vCards.
-
Property validation.
For example, the date syntax of the BDAY
property is not checked.
Usage
http://host/path/vbook.php?file=filename&title=title&style=stylesheet&cat=cat1,cat2,... | *&hide=hide list
Query Parameters
[defaults shown in brackets]
- file=filename
- Specifies the file or URL to parse.
If this is not specified, then nothing is displayed allowing the
vbook.php file to be included in another page and the
print_vcard_address_book function to be called programatically.
- title=title
- The title at the top of the page. [filename]
- style=stylesheet
- The stylesheet. [style.css]
- cat=cat1,cat2,...
- A comma delimited list of categories to show. [All]
- cat=*
- This has the same effect as cat=All but the categories are listed
individually instead of just the string 'All' being displayed.
This feature can be used to determine all of the categories in the file.
- hide=hide list
- A comma delimited list of properties or types to hide. The list items are
case insensitive. For example, to hide the NOTE property and any HOME information
for all properties, set the list to note,home.
Hosted By