astrotomic/laravel-vcard
Composer 安装命令:
composer require astrotomic/laravel-vcard
包简介
A fluent builder class for vCard files.
README 文档
README
A fluent builder class for vCard files.
Installation
You can install the package via composer:
composer require astrotomic/laravel-vcard
Usage
use Astrotomic\Vcard\Properties\Email; use Astrotomic\Vcard\Properties\Gender; use Astrotomic\Vcard\Properties\Kind; use Astrotomic\Vcard\Properties\Tel; use Astrotomic\Vcard\Vcard; use Carbon\Carbon; Vcard::make() ->kind(Kind::INDIVIDUAL) ->gender(Gender::MALE) ->fullName('John Adam Smith') ->name('Smith', 'John', 'Adam') ->email('john.smith@mail.com') ->email('john.smith@company.com', [Email::WORK, Email::INTERNET]) ->tel('+1234567890', [Tel::HOME, Tel::VOICE]) ->tel('+0987654321', [Tel::WORK, Tel::VOICE]) ->tel('+0123456789', [Tel::CELL, Tel::VOICE]) ->url('https://johnsmith.com') ->url('https://company.com') ->bday(Carbon::parse('1990-06-24')) ->adr('','','1600 Pennsylvania Ave NW', 'Washington', 'DC', '20500-0003', 'USA') ->photo('data:image/jpeg;base64,'.base64_encode(file_get_contents(__DIR__.'/stubs/photo.jpg'))) ->title('V. P. Research and Development') ->role('Excecutive') ->org('Google', 'GMail Team', 'Spam Detection Squad') ->member('john.smith@company.com', '550e8400-e29b-11d4-a716-446655440000') ->note('Hello world') ;
BEGIN:VCARD VERSION:4.0 FN;CHARSET=UTF-8:John Adam Smith N;CHARSET=UTF-8:Smith;John;Adam;; KIND:individual GENDER:M EMAIL;TYPE=INTERNET:john.smith@mail.com EMAIL;TYPE=WORK;TYPE=INTERNET:john.smith@company.com TEL;TYPE=HOME;TYPE=VOICE:+1234567890 TEL;TYPE=WORK;TYPE=VOICE:+0987654321 TEL;TYPE=CELL;TYPE=VOICE:+0123456789 URL:https://johnsmith.com URL:https://company.com BDAY:1990-06-24 ADR;TYPE=WORK:;;1600 Pennsylvania Ave NW;Washington;DC;20500-0003;USA PHOTO;data:image/jpeg;base64,... TITLE:V. P. Research and Development ROLE:Excecutive ORG:Google;GMail Team;Spam Detection Squad MEMBER:urn:uuid:550e8400-e29b-11d4-a716-446655440000 REV:2021-02-25T10:30:45.000000Z PRODID:-//Astrotomic vCard END:VCARD
astrotomic/laravel-vcard 适用场景与选型建议
astrotomic/laravel-vcard 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 33.88k 次下载、GitHub Stars 达 53, 最近一次更新时间为 2021 年 02 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「contact」 「laravel」 「contacts」 「vCard」 「vcf」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 astrotomic/laravel-vcard 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 astrotomic/laravel-vcard 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 astrotomic/laravel-vcard 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
contacts
Simple & configurable SilverStripe module to notify admin on contact form submission
Application for managing contact persons and organizations
Custom form builder for OctoberCMS
Laravel contact us form package to send email and save to database
This module provides a simple addressbook management for admin and frontend rendering.
统计信息
- 总下载量: 33.88k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 53
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-02-24