jeroendesloovere/vcard-bundle

This Symfony 2 bundle can generate vCards with lots of data. When using an < iOS 7 device it will export as a .ics file because iOS devices don't support the default .vcf files.

Installs: 72 642

Dependents: 4

Suggesters: 0

Security: 0

Stars: 16

Watchers: 4

Forks: 5

Open Issues: 2

Type:symfony-bundle

1.2.3 2018-11-30 07:35 UTC

This package is auto-updated.

Last update: 2024-10-24 04:20:06 UTC


README

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();