PHPackages                             kolinko-ant/php-autopilothq - 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. kolinko-ant/php-autopilothq

ActiveLibrary[API Development](/categories/api)

kolinko-ant/php-autopilothq
===========================

PHP wrapper for interacting with the AutopilotHQ API.

0.1.1(9y ago)05.7kMITPHPPHP &gt;=5.5.9

Since Feb 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/kolinko-ant/php-autopilothq)[ Packagist](https://packagist.org/packages/kolinko-ant/php-autopilothq)[ Docs](https://github.com/finicprint/php-autopilothq)[ RSS](/packages/kolinko-ant-php-autopilothq/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (4)Versions (5)Used By (0)

php-autopilothq
===============

[](#php-autopilothq)

A php library for interacting with AutopilotHQ API .

Installation
------------

[](#installation)

```
$ composer require kolinko-ant/php-autopilothq
```

Usage
-----

[](#usage)

---

All interaction occurs in the `AutopilotManager` class.

### initialize manager

[](#initialize-manager)

```
$manager = new AutopilotManager($apiKey);
```

### getContact

[](#getcontact)

```
$manager->getContact($id|$email);
```

### saveContact

[](#savecontact)

```
$manager->saveContact(AutopilotContact $contact);
```

### saveContacts

[](#savecontacts)

```
$manager->saveContacts(array $contacts);
```

### deleteContact

[](#deletecontact)

```
$manager->deleteContact($id|$email);
```

### unsubscribeContact

[](#unsubscribecontact)

```
$manager->unsubscribeContact($id|$email);
```

### subscribeContact

[](#subscribecontact)

```
$manager->subscribeContact($id|$email);
```

### updateContactEmail

[](#updatecontactemail)

```
$manager->updateContactEmail($oldEmail, $newEmail);
```

### getAllLists

[](#getalllists)

```
$manager->getAllLists();
```

### createList

[](#createlist)

```
$manager->createList($list);
```

### getListByName

[](#getlistbyname)

```
$manager->getListByName($list);
```

### deleteList

[](#deletelist)

```
//TODO: AutopilotHQ hasn't implemented this yet
$manager->deleteList($list);
```

### getAllContactsInList

[](#getallcontactsinlist)

```
$manager->getAllContactsInList($list);
```

### addContactToList

[](#addcontacttolist)

```
$manager->addContactToList($list, $id|$email);
```

### removeContactFromList

[](#removecontactfromlist)

```
$manager->removeContactFromList($list, $id|$email);
```

### checkContactInList

[](#checkcontactinlist)

```
$manager->checkContactInList($list, $id|$email);
```

### allTriggers

[](#alltriggers)

```
$manager->allTriggers();
```

### addContactToJourney

[](#addcontacttojourney)

```
$manager->addContactToJourney($journey, $id|$email);
```

### allRestHooks

[](#allresthooks)

```
$manager->allRestHooks();
```

### deleteAllRestHooks

[](#deleteallresthooks)

```
$manager->deleteAllRestHooks();
```

### addRestHook

[](#addresthook)

```
$manager->addRestHook($event, $targetUrl);
```

### deleteRestHook

[](#deleteresthook)

```
$manager->deleteRestHook($hookId);
```

AutopilotContact
----------------

[](#autopilotcontact)

---

### get value

[](#get-value)

```
// magic method
$value = $contact->$name;
// getter
$value = $contact->getFieldValue($name);
```

### set value

[](#set-value)

```
// magic method
$contact->$name = $value;
// setter
$contact->setFieldValue($name, $value);
```

### unset value

[](#unset-value)

```
// magic method
unset($contact->$name);
// method
$contact->unsetFieldValue($name);
```

### isset value

[](#isset-value)

```
// magic method
isset($contact->$name);
// method
$contact->issetFieldValue($name);
```

### getAllContactLists

[](#getallcontactlists)

```
//NOTE: this only reads cached "lists" array returned for a "contact info" request
$contact->getAllContactLists();
```

### hasList

[](#haslist)

```
//NOTE: this only reads cached "lists" array returned for a "contact info" request
$contact->hasList($list);
```

### fill

[](#fill)

```
// read array of values and populate properties
// NOTE: automatically formats attributes according to AutopilotHQ's "naming convention" (doesn't really exist)
$contact->fill([
    'firstName' => 'John',
    'lastName'  => 'Smith',
    'age'       => 42,
]);
```

### toRequest

[](#torequest)

```
// return array ready to be pushed to the API
$user = $contact->toRequest();
```

### toArray

[](#toarray)

```
// return array of [ property => value ] no matter if custom or defined field
$user = $contact->toArray();
/* [
 *    'firstName' => 'John',
 *    'lastName'  => 'Smith',
 *    'age'       => 42,
 * ]
 */
```

### jsonSerialize

[](#jsonserialize)

```
// json representation of "toArray()"
$user = $contact->jsonSerialze();
$user = json_encode($contact);
```

License
-------

[](#license)

MIT

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~160 days

Total

3

Last Release

3458d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2598834?v=4)[Anton Kolinko](/maintainers/kolinko-ant)[@kolinko-ant](https://github.com/kolinko-ant)

---

Top Contributors

[![kolinko-ant](https://avatars.githubusercontent.com/u/2598834?v=4)](https://github.com/kolinko-ant "kolinko-ant (9 commits)")[![nicolasThal](https://avatars.githubusercontent.com/u/2675545?v=4)](https://github.com/nicolasThal "nicolasThal (3 commits)")[![ruskiyos](https://avatars.githubusercontent.com/u/1847403?v=4)](https://github.com/ruskiyos "ruskiyos (3 commits)")[![BrianAltenhofel](https://avatars.githubusercontent.com/u/1105455?v=4)](https://github.com/BrianAltenhofel "BrianAltenhofel (2 commits)")[![rickard2](https://avatars.githubusercontent.com/u/488425?v=4)](https://github.com/rickard2 "rickard2 (1 commits)")

---

Tags

autopilotpicrautopilothq

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/kolinko-ant-php-autopilothq/health.svg)

```
[![Health](https://phpackages.com/badges/kolinko-ant-php-autopilothq/health.svg)](https://phpackages.com/packages/kolinko-ant-php-autopilothq)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k34](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[picr/php-autopilothq

PHP wrapper for interacting with the AutopilotHQ API.

11147.9k1](/packages/picr-php-autopilothq)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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