PHPackages                             liveintent/sdk-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. liveintent/sdk-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

liveintent/sdk-php
==================

LiveIntent SDK PHP

v0.4.1(2y ago)07.1k↓66.7%1[3 PRs](https://github.com/LiveIntent/sdk-php/pulls)MITPHPPHP ^8.0|^8.1

Since May 7Pushed 1y ago4 watchersCompare

[ Source](https://github.com/LiveIntent/sdk-php)[ Packagist](https://packagist.org/packages/liveintent/sdk-php)[ RSS](/packages/liveintent-sdk-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (27)Used By (0)

LiveIntent SDK PHP
==================

[](#liveintent-sdk-php)

[![Test](https://github.com/LiveIntent/sdk-php/actions/workflows/run-tests.yml/badge.svg)](https://github.com/LiveIntent/sdk-php/actions/workflows/run-tests.yml)[![Latest Stable Version](https://camo.githubusercontent.com/37132599c29ed20e8905f720467c76333a4476812a8604b921c4e1dd87064470/68747470733a2f2f706f7365722e707567782e6f72672f6c697665696e74656e742f73646b2d7068702f762f737461626c652e737667)](https://packagist.org/packages/liveintent/sdk-php)[![License](https://camo.githubusercontent.com/d16cddcea4d157d2b59d7efb503a8f8fffaacf12e6fdb55decd39bd26d75fd20/68747470733a2f2f706f7365722e707567782e6f72672f6c697665696e74656e742f73646b2d7068702f6c6963656e7365)](//packagist.org/packages/liveintent/sdk-php)

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](/docs/usage.md).

Getting started
---------------

[](#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
-------

[](#testing)

To run the unit tests

```
composer test
```

### Mocking

[](#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

[](#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

[](#test-using-recorded-responses)

To run the tests against a live api connection and record the results run:

```
composer test
```

#### Alternative methods of mocking

[](#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](https://laravel.com/docs/8.x/http-client#testing).

Linting
-------

[](#linting)

The installed linter will auto-format your code to comply with our agreed php coding standard.

To run the linter

```
composer lint
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 61.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~37 days

Recently: every ~102 days

Total

23

Last Release

1026d ago

PHP version history (3 changes)v0.1.0PHP ^7.4|^8.0

v0.1.14PHP ^8.0

v0.1.15PHP ^8.0|^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/c52ff3e7b72f701cb674c7c39462106c5a157d582e0aebf1279a2bd8854c08b8?d=identicon)[tam](/maintainers/tam)

---

Top Contributors

[![tam5](https://avatars.githubusercontent.com/u/11488762?v=4)](https://github.com/tam5 "tam5 (40 commits)")[![rrmanalo623](https://avatars.githubusercontent.com/u/8028141?v=4)](https://github.com/rrmanalo623 "rrmanalo623 (17 commits)")[![ashishkumarqait](https://avatars.githubusercontent.com/u/34158553?v=4)](https://github.com/ashishkumarqait "ashishkumarqait (4 commits)")[![chintan-liveintent](https://avatars.githubusercontent.com/u/98754901?v=4)](https://github.com/chintan-liveintent "chintan-liveintent (2 commits)")[![jiechaowang](https://avatars.githubusercontent.com/u/69469982?v=4)](https://github.com/jiechaowang "jiechaowang (2 commits)")

---

Tags

phpsdkliveintent

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/liveintent-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/liveintent-sdk-php/health.svg)](https://phpackages.com/packages/liveintent-sdk-php)
```

###  Alternatives

[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[laravel/cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.

264778.4k3](/packages/laravel-cashier-paddle)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
