PHPackages                             jelgblad/vcard - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jelgblad/vcard

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jelgblad/vcard
==============

A vCard implementation for PHP

0.0.11(5y ago)012MITPHP

Since Feb 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jelgblad/php-vcard)[ Packagist](https://packagist.org/packages/jelgblad/vcard)[ RSS](/packages/jelgblad-vcard/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

php-vcard
=========

[](#php-vcard)

A vCard implementation for PHP

Install
-------

[](#install)

### Install with [Composer](https://getcomposer.org/)

[](#install-with-composer)

```
composer require jelgblad/vcard

```

### Install as PHP-archive (PHAR)

[](#install-as-php-archive-phar)

1. Download latest from .
2. Copy `vcard.phar` to somwhere in your project directory.
3. Include/require it as you would any other PHP-file: `require 'path/to/vcard.phar';`.

Example
-------

[](#example)

**Write a vCard**

```
use jelgblad\VCard\VCard;

// Create new VCard
$vcard = new VCard();

// Add some properties to VCard
$vcard->createProp('FN', 'Jonas Elgblad');
$vcard->createProp('N', ['Elgblad', 'Jonas']);
$vcard->createProp('URL', 'https://github.com/jelgblad')->createParam('TYPE', 'github');
$vcard->createProp('EXPERTISE', 'PHP')->createParam('LEVEL', 'moderate');

echo $vcard;
```

**Parse a vCard**

```
use jelgblad\VCard\VCard;

$input = '
  BEGIN:VCARD
  VERSION:4.0
  FN:John Doe
  N:Doe;John
  END:VCARD';

// Since .vcf-files can contain more than one vCard, VCard::parse() returns an array of all the parsed vCards.
$vcards = VCard::parse($input);

foreach ($vcards as $i => $vcard) {
  printf("vCard %d:\n", $i + 1);
  printf("Name: %s\n", $vcard->getProp('FN')->getValue());
}
```

See more examples in the [examples directory](examples/).

API documentation
-----------------

[](#api-documentation)

Read the API documentation [here](docs/documentation.md).

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

4

Last Release

1957d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/971469?v=4)[Jonas Elgblad](/maintainers/jelgblad)[@jelgblad](https://github.com/jelgblad)

---

Top Contributors

[![jelgblad](https://avatars.githubusercontent.com/u/971469?v=4)](https://github.com/jelgblad "jelgblad (62 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jelgblad-vcard/health.svg)

```
[![Health](https://phpackages.com/badges/jelgblad-vcard/health.svg)](https://phpackages.com/packages/jelgblad-vcard)
```

###  Alternatives

[anaseqal/nova-sidebar-icons

A Laravel Nova tool.

49209.1k1](/packages/anaseqal-nova-sidebar-icons)[michaloravec/laravel-paginateroute

Laravel outer extension to easily use laravel's paginator without the query string

1716.4k](/packages/michaloravec-laravel-paginateroute)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
