https://github.com/remindgmbh/businesscard
This library provides an object oriented aproach for generating vCard files.
https://github.com/remindgmbh/businesscard
library php vcard
Last synced: 11 months ago
JSON representation
This library provides an object oriented aproach for generating vCard files.
- Host: GitHub
- URL: https://github.com/remindgmbh/businesscard
- Owner: remindgmbh
- License: gpl-3.0
- Created: 2020-10-23T23:05:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-07T14:08:35.000Z (about 4 years ago)
- Last Synced: 2025-07-27T20:57:06.433Z (11 months ago)
- Topics: library, php, vcard
- Language: PHP
- Homepage:
- Size: 192 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# REMIND - Businesscard library
This library provides an object oriented aproach for generating vCard files.
[travis-img]: https://img.shields.io/travis/remindgmbh/businesscard.svg?style=flat-square
[codecov-img]: https://img.shields.io/codecov/c/github/remindgmbh/businesscard.svg?style=flat-square
[php-v-img]: https://img.shields.io/packagist/php-v/remind/businesscard?style=flat-square
[github-issues-img]: https://img.shields.io/github/issues/remindgmbh/businesscard.svg?style=flat-square
[contrib-welcome-img]: https://img.shields.io/badge/contributions-welcome-blue.svg?style=flat-square
[license-img]: https://img.shields.io/github/license/remindgmbh/businesscard.svg?style=flat-square
[styleci-img]: https://styleci.io/repos/306764901/shield
[![travis-img]](https://travis-ci.com/github/remindgmbh/businesscard)
[![codecov-img]](https://codecov.io/gh/remindgmbh/businesscard)
[![styleci-img]](https://github.styleci.io/repos/306764901)
[![php-v-img]](https://packagist.org/packages/remind/businesscard)
[![github-issues-img]](https://github.com/remindgmbh/businesscard/issues)
[![contrib-welcome-img]](https://github.com/remindgmbh/businesscard/blob/master/CONTRIBUTING.md)
[![license-img]](https://github.com/remindgmbh/businesscard/blob/master/LICENSE)
--------------------------------------------------------------------------------
## DESCRIPTION
Because of the new reserved keyword ```fn``` in PHP 7.4 this library currently
does not offer support for this PHP version.
### vCard
This implementation is incomplete at the moment as not all fields and parameters
of the vCard rfc6350 are fully implemented.
Supports v2.1, 3.0 and 4.0 for all elements.
### xCard
Implementation pending.
### jCard
Implementation pending.
### hCard
Implementation pending.
--------------------------------------------------------------------------------
## HOW TO USE
```php
setVersion(Version::VERSION_4_0);
$vCard = new VCard($version);
$n = new N();
$n->setGivenName('John');
$n->setFamilyName('Doe');
$fn = new Func('John Doe');
$vCard->addProperty($n);
$vCard->addProperty($fn);
echo $vCard;
```