PHPackages                             nathanabrewer/php-relateiq - 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. [API Development](/categories/api)
4. /
5. nathanabrewer/php-relateiq

ActiveLibrary[API Development](/categories/api)

nathanabrewer/php-relateiq
==========================

PHP RelateIQ API

0.0.1(11y ago)0310MITPHPPHP &gt;=5.3.0

Since Jul 15Pushed 10y ago1 watchersCompare

[ Source](https://github.com/nathanabrewer/php-relateiq)[ Packagist](https://packagist.org/packages/nathanabrewer/php-relateiq)[ RSS](/packages/nathanabrewer-php-relateiq/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

OBSOLETE - php-relateiq
=======================

[](#obsolete---php-relateiq)

Simple class to quickly read and write stuff in RelateIQ. I do not have anything that is in place for Accounts at this moment, only simple Contact and List/ListItem stuff.

Install with composer

```
"require": {
        "nathanabrewer/php-relateiq": "0.0.*"
}

```

Using Laravel4? Me too! ....In you config/app.php add to your aliases array

```
'RelateIQ'          =>  '\nathanabrewer\RelateIQ\RelateIQ'

```

Example below will run two API Queries, one GET and one PUT.

```
$riq = new RelateIQ($key, $secret);
$contact = $riq->getContact('53c238d7e4b0d0612a7b84bd');
$contact->properties->remove('email', 'nathan.a.brewer@gmail.com');
$contact->properties->add('email', 'nathan.a.brewer@dftz.org');
$contact->save();

```

Lookup the available Lists... Make sure the List is shared with you! This will runs a single GET Request

```
$lists = $riq->getLists();
foreach($lists as $list){
    echo "{$list->id} -- {$list->title}\n";
}

```

Here, Rather than look at all the Lists, I am asking each List for List Items that contain this Contact. This will do a series of API GET requests: 1. A GET Request for all avaliable Lists (If I have not done one yet) 2. A GET Request per List for all ListItems with contact

```
$listItems = $riq->getAllListItemsForContact($contact);
foreach($listItems as $listItem){
    echo "Contact {$contact->getName()} (cid {$contact->id} has a ListItem {$listItem->id} on List {$listItem->listId} {$listItem->getList()->title}\n";
}

```

Alternatively, I could load the List, and then load the List Item. If I load an existing ListItem by its ListItem Id then we don't need to deal with the contactID

```
$list = $riq->getList($list_id);
$listItem = $list->getListItem($list_item_id);

```

Here I am interacting with my List Item. The idea here is already have the List Schema loaded, so I can define a value by its name. I will let the ListItem object determine if it is a Text/Number/List or Picklist, and set the value for the API call as appropriate.

```
$listItem->setField('Status', 'Active');
$listItem->setField('Drinks', array('Tea', 'Coffee', 'Water'));
$listItem->save();

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~1 days

Total

2

Last Release

4315d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1222929?v=4)[Nathan Brewer](/maintainers/nathanabrewer)[@nathanabrewer](https://github.com/nathanabrewer)

---

Top Contributors

[![nathanabrewer](https://avatars.githubusercontent.com/u/1222929?v=4)](https://github.com/nathanabrewer "nathanabrewer (19 commits)")

---

Tags

relateiq

### Embed Badge

![Health badge](/badges/nathanabrewer-php-relateiq/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M453](/packages/google-gax)

PHPackages © 2026

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