friends-of-vertex-cards/api-client
Composer 安装命令:
composer require friends-of-vertex-cards/api-client
包简介
PHP library for Vertex Cards API interaction
README 文档
README
PHP library for Vertex Cards API interaction
Supported PHP Versions
- PHP 8.3+
Documentation
1. Installation
The Vertex Cards API Client can be installed using Composer by running the following command:
composer require friends-of-vertex-cards/api-client
2. Getting API token
The library provides authorization flows for users based on a custom header.
Proceed to documentation to obtain your Live API Key and Company Uuid.
3. Client Initialization
Create ApiClient object using the following code:
$apiKey = 'your-api-key'; // step 2. Getting API token $factory = new \FriendsOfVertexCards\ApiClient\VertexCardsClientFactory( new \Http\Adapter\Guzzle7\Client(), new \Symfony\Component\Serializer\Serializer(), 'https://gateway.vertex-cards.com', '/api/v1/cards', new \Psr\Log\NullLogger(), ); $client = $factory->create(new ConfigureDto($apiKey));
Also you can implement your own factory by implementing \FriendsOfVertexCards\ApiClient\VertexCardsClientFactoryInterface
4. API Requests
You can find the full list of API methods here.
4.1 Request Sample
Example of getting accounts:
$companyUuid = Ramsey\Uuid\Uuid::fromString('your-company-uuid') // step 2. Getting API token $apiKey = 'your-api-key'; // step 2. Getting API token /** @var \FriendsOfVertexCards\ApiClient\VertexCardsClientInterface $client */ $client = $factory->create(new ConfigureDto($apiKey)); // step 3. Client Initialization /** @var \FriendsOfVertexCards\ApiClient\Account\List\GetListAccountResponse $accounts */ $accounts = $client->getAccounts(new \FriendsOfVertexCards\ApiClient\Account\List\GetListAccountRequest($companyUuid, 1, 10));
5. Use cases
friends-of-vertex-cards/api-client 适用场景与选型建议
friends-of-vertex-cards/api-client 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 24 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 10 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 friends-of-vertex-cards/api-client 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 friends-of-vertex-cards/api-client 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 24
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-11