Skip to content

Reference

phil/contact
TypeKindRole
ContactCardfinal readonly classA person or an organisation, and how to reach them
PersonNamefinal readonly classThe name of a person in its parts, written and sorted as its culture does
NameOrderstring-backed enumGiven name first or family name first
NameConventionfinal readonly classHow a culture writes and sorts names
NameConventionsfinal classThe conventions of the library, by culture
Emailfinal readonly classAn email address
PhoneLinefinal readonly classA phone number with its role
PhoneRolestring-backed enumWhat a phone line is for, and its vCard type
VCardfinal classA card as vCard 4.0
SchemaOrgfinal classA card as schema.org JSON-LD
ContactCardArrayfinal classA card to and from an array, for storage
JSContactCardfinal readonly classA card as JSContact exchanges it: uid, addresses, unmapped properties, notices
JSContactWriterfinal classA card as JSContact 1.0
JSContactReaderfinal readonly classA JSContact card read, strict and bounded
JSContactNoticefinal readonly classA part of a JSContact card read but not kept
Exception\ContactExceptioninterfaceEvery exception of the library
Exception\InvalidContactfinal class, InvalidArgumentExceptionAn email that is none, a text too long, a person name or a JSContact card that cannot be made
Exception\UnreadableContactfinal class, UnexpectedValueExceptionA stored card that cannot be read back
Exception\UnreadableJSContactfinal class, UnexpectedValueExceptionA JSContact card that cannot be read

The classes of Phil\Contact\JSContact\ are internal: the parts of one reading of a JSContact card.