liveintent/sdk-php
最新稳定版本:v0.4.1
Composer 安装命令:
composer require liveintent/sdk-php
包简介
LiveIntent SDK PHP
关键字:
README 文档
README
The LiveIntent PHP SDK provides a convenient way to interact with the LiveIntent API in PHP applications.
This document describes how to develop the SDK itself. For usage documentation and examples see usage.
Getting started
First clone the repository. Then, run cp .env.example .env to create the env file.
Finally install the dependencies via:
composer install
Testing
To run the unit tests
composer test
Mocking
When testing you often want to mock external api calls, but you also want to be confident that those api calls will work in the real world.
To solve this, you may instruct the client to record the request/response pairs it makes. This allows you to run your tests against a live version of the api when necessary, and to reuse those same responses when mocking is acceptable for faster, more predictable and reliable tests.
Test in record mode
To run the tests against a live api connection and record the results run:
composer test-record
By default recordings will be saved in the file tests/__snapshots__/snapshot.
Test using recorded responses
To run the tests against a live api connection and record the results run:
composer test
Alternative methods of mocking
The LiveIntent client inherits from Laravel's Http Client. Therefore, all the methods available to that client are also be available.
For detailed documentation see here.
Linting
The installed linter will auto-format your code to comply with our agreed php coding standard.
To run the linter
composer lint
liveintent/sdk-php 适用场景与选型建议
liveintent/sdk-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7.21k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 05 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「sdk」 「liveintent」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 liveintent/sdk-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 liveintent/sdk-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 liveintent/sdk-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
LiveIntent code style rules for php-cs-fixer
Shared tools for laravel projects
Utility for easily setting up search requests for Laravel resources
Alfabank REST API integration
Zero-dependency raw PHP DNS resolver, domain-ownership verification, and intoDNS/MxToolbox-style diagnostics. Queries authoritative nameservers directly over sockets — never trusts the recursive cache for ownership checks.
A lightweight plain-PHP framework for database-backed CRUD APIs.
统计信息
- 总下载量: 7.21k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-05-07