2017 © Pedro Peláez
 

library vcard

This VCard PHP class can generate a vCard with some data. When using an iOS device it will export as a .ics file because iOS devices don't support the default .vcf files.

image

rkorebrits/vcard

This VCard PHP class can generate a vCard with some data. When using an iOS device it will export as a .ics file because iOS devices don't support the default .vcf files.

  • Thursday, July 7, 2016
  • by rkorebrits
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 81 Forks
  • 0 Open issues
  • 17 Versions
  • 0 % Grown

The README.md

VCard PHP class

Latest Stable Version License Build Status Scrutinizer Code Quality, (*1)

This VCard PHP class can generate a vCard with some data. When using an iOS device < iOS 8 it will export as a .ics file because iOS devices don't support the default .vcf files., (*2)

Usage

Installation

``` json { "require": { "jeroendesloovere/vcard": "1.2.*" } }, (*3)


> Add the above in your `composer.json` file when using [Composer](https://getcomposer.org). ### Example ``` php use JeroenDesloovere\VCard\VCard; // define vcard $vcard = new VCard(); // define variables $lastname = 'Desloovere'; $firstname = 'Jeroen'; $additional = ''; $prefix = ''; $suffix = ''; // add personal data $vcard->addName($lastname, $firstname, $additional, $prefix, $suffix); // add work data $vcard->addCompany('Siesqo'); $vcard->addJobtitle('Web Developer'); $vcard->addEmail('info@jeroendesloovere.be'); $vcard->addPhoneNumber(1234121212, 'PREF;WORK'); $vcard->addPhoneNumber(123456789, 'WORK'); $vcard->addAddress(null, null, 'street', 'worktown', null, 'workpostcode', 'Belgium'); $vcard->addURL('http://www.jeroendesloovere.be'); $vcard->addPhoto(__DIR__ . '/landscape.jpeg'); // return vcard as a string //return $vcard->getOutput(); // return vcard as a download return $vcard->download();

View all examples or check the VCard class., (*4)

Support for frameworks, (*5)

I've created a Symfony Bundle: VCard Bundle, (*6)

Usage in for example: Laravel, (*7)

return Response::make(
    $this->vcard->getOutput(),
    200,
    $this->vcard->getHeaders(true)
);

Documentation

The class is well documented inline. If you use a decent IDE you'll see that each method is documented with PHPDoc., (*8)

Contributing

Contributions are welcome and will be fully credited., (*9)

Pull Requests

To add or update code, (*10)

  • Coding Syntax - Please keep the code syntax consistent with the rest of the package.
  • Add unit tests! - Your patch won't be accepted if it doesn't have tests.
  • Document any change in behavior - Make sure the README and any other relevant documentation are kept up-to-date.
  • Consider our release cycle - We try to follow semver. Randomly breaking public APIs is not an option.
  • Create topic branches - Don't ask us to pull from your master branch.
  • One pull request per feature - If you want to do more than one thing, send multiple pull requests.
  • Send coherent history - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting.

Issues

For bug reporting or code discussions., (*11)

More info on how to work with GitHub on help.github.com., (*12)

Credits

License

The module is licensed under MIT. In short, this license allows you to do everything as long as the copyright statement stays present., (*13)

The Versions

07/07 2016

dev-master

9999999-dev https://github.com/jeroendesloovere/vcard

This VCard PHP class can generate a vCard with some data. When using an iOS device it will export as a .ics file because iOS devices don't support the default .vcf files.

  Sources   Download

MIT

The Requires

 

The Development Requires

php generator vcard .vcf

30/11 2015

1.2.2

1.2.2.0 https://github.com/jeroendesloovere/vcard

This VCard PHP class can generate a vCard with some data. When using an iOS device it will export as a .ics file because iOS devices don't support the default .vcf files.

  Sources   Download

MIT

The Requires

 

The Development Requires

php generator vcard .vcf

15/09 2015

dev-bugfix-arabic-characters

dev-bugfix-arabic-characters https://github.com/jeroendesloovere/vcard

This VCard PHP class can generate a vCard with some data. When using an iOS device it will export as a .ics file because iOS devices don't support the default .vcf files.

  Sources   Download

MIT

The Requires

 

The Development Requires

php generator vcard .vcf

23/07 2015

1.2.1

1.2.1.0 https://github.com/jeroendesloovere/vcard

This VCard PHP class can generate a vCard with some data. When using an iOS device it will export as a .ics file because iOS devices don't support the default .vcf files.

  Sources   Download

MIT

The Requires

 

The Development Requires

php generator vcard .vcf

01/06 2015

1.2.0

1.2.0.0 https://github.com/jeroendesloovere/vcard

This VCard PHP class can generate a vCard with some data. When using an iOS device it will export as a .ics file because iOS devices don't support the default .vcf files.

  Sources   Download

MIT

The Requires

 

The Development Requires

php generator vcard .vcf

21/05 2015

1.1.11

1.1.11.0 https://github.com/jeroendesloovere/vcard

This VCard PHP class can generate a vCard with some data. When using an iOS device it will export as a .ics file because iOS devices don't support the default .vcf files.

  Sources   Download

MIT

The Requires

 

The Development Requires

php generator vcard .vcf

20/05 2015

1.1.10

1.1.10.0 https://github.com/jeroendesloovere/vcard

This VCard PHP class can generate a vCard with some data. When using an iOS device it will export as a .ics file because iOS devices don't support the default .vcf files.

  Sources   Download

MIT

The Requires

 

The Development Requires

php generator vcard .vcf

21/04 2015

1.1.9

1.1.9.0 https://github.com/jeroendesloovere/vcard

This VCard PHP class can generate a vCard with some data. When using an iOS device it will export as a .ics file because iOS devices don't support the default .vcf files.

  Sources   Download

MIT

The Requires

 

php generator vcard .vcf

09/03 2015

1.1.8

1.1.8.0 https://github.com/jeroendesloovere/vcard

This VCard PHP class can generate a vCard with some data. When using an iOS device it will export as a .ics file because iOS devices don't support the default .vcf files.

  Sources   Download

MIT

The Requires

 

php generator vcard .vcf

05/03 2015

1.1.7

1.1.7.0 https://github.com/jeroendesloovere/vcard

This VCard PHP class can generate a vCard with some data. When using an iOS device it will export as a .ics file because iOS devices don't support the default .vcf files.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

php generator vcard .vcf

24/02 2015

1.1.6

1.1.6.0 https://github.com/jeroendesloovere/vcard

This VCard PHP class can generate a vCard with some data. When using an iOS device it will export as a .ics file because iOS devices don't support the default .vcf files.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

php generator vcard .vcf

30/01 2015

1.1.5

1.1.5.0 https://github.com/jeroendesloovere/vcard

This VCard PHP class can generate a vCard with some data. When using an iOS device it will export as a .ics file because iOS devices don't support the default .vcf files.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

php generator vcard .vcf

22/01 2015

1.1.4

1.1.4.0 https://github.com/jeroendesloovere/vcard

This VCard PHP class can generate a vCard with some data. When using an iOS device it will export as a .ics file because iOS devices don't support the default .vcf files.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

php generator vcard .vcf

22/01 2015

1.1.3

1.1.3.0 https://github.com/jeroendesloovere/vcard

This VCard PHP class can generate a vCard with some data. When using an iOS device it will export as a .ics file because iOS devices don't support the default .vcf files.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

php generator vcard .vcf

25/11 2014

1.1.2

1.1.2.0 https://github.com/jeroendesloovere/vcard

This VCard PHP class can generate a vCard with some data. When using an iOS device it will export as a .ics file because iOS devices don't support the default .vcf files.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

php generator vcard .vcf

13/10 2014

1.1.1

1.1.1.0 https://github.com/jeroendesloovere/vcard

This VCard PHP class can generate a vCard with some data. When using an iOS device it will export as a .ics file because iOS devices don't support the default .vcf files.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

php generator vcard .vcf

02/04 2014

1.1.0

1.1.0.0 https://github.com/deslooverej/vcard

This VCard PHP class can generate a vCard with some data. When using an iOS device it will export as a .ics file because iOS devices don't support the default .vcf files.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

php generator vcard .vcf