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

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

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

LiveIntent SDK PHP

v0.4.1(2y ago)07.2k↓93.3%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 yesterday

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

35

—

LowBetter than 77% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity21

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

1071d 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[illuminate/support

The Illuminate Support package.

630113.0M41.2k](/packages/illuminate-support)[illuminate/auth

The Illuminate Auth package.

10528.2M1.2k](/packages/illuminate-auth)[illuminate/routing

The Illuminate Routing package.

1419.2M3.0k](/packages/illuminate-routing)

PHPackages © 2026

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