Skip to content

jeroendesloovere/vcard-bundle

Repository files navigation

VCardBundle

A Symfony2 bundle for creating vCards. Which uses the VCard class.

Usage

Installation

In composer.json

"require": {
    "jeroendesloovere/vcard-bundle": "1.0.*"
}

and in app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...,
        new JeroenDesloovere\Bundle\VCardBundle\JeroenDesloovereVCardBundle()
    );
}

Example

$vcard = $this->get('jeroendesloovere.vcard');

$vcard->addName('Jeroen', 'Desloovere');
$vcard->download();