PHPackages                             minstersoft/activecampaign - 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. minstersoft/activecampaign

ActivePackage[API Development](/categories/api)

minstersoft/activecampaign
==========================

ActiveCampaign API connector for APIv3 For PHP 7.0

2.0.0(4y ago)045MITPHPPHP &gt;=7.4.0

Since Oct 16Pushed 4y agoCompare

[ Source](https://github.com/Minstersoft/activecampaign)[ Packagist](https://packagist.org/packages/minstersoft/activecampaign)[ RSS](/packages/minstersoft-activecampaign/feed)WikiDiscussions develop Synced 1w ago

READMEChangelog (7)Dependencies (8)Versions (12)Used By (0)

ActiveCampaign PHP SDK
======================

[](#activecampaign-php-sdk)

[![License](https://camo.githubusercontent.com/368821d0ec0ca9636c6ba3364718dbcb56572865546a0a7d136d6317e8207fa9/68747470733a2f2f706f7365722e707567782e6f72672f746573746d6f6e69746f722f61637469766563616d706169676e2f6c6963656e7365)](https://packagist.org/packages/testmonitor/activecampaign)

This package provides a PHP SDK for the ActiveCampaign API (v3).

Forked from [testmonitor/activecampaign](https://github.com/testmonitor/activecampaign)

For more information on the ActiveCampaign API, refer to their [developer documentation](https://developers.activecampaign.com/reference).

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Tests](#tests)
- [Changelog](#changelog)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

This package can be installed through Composer:

```
$ composer require minstersoft/activecampaign
```

To install and dev locally:

1\. Add version in composer.json.

```
{
"..": "...",
"version": "1.0.0",
"...": "..."
}
```

2\. Replace the url with your local path and run the command.

```
$ composer config repositories.minstersoft/activecampaign '{"type": "path", "url": "/home/vagrant/activecampaign"}'
$ composer require minstersoft/activecampaign
```

Make sure to use Composer's autoload:

```
require __DIR__.'/../vendor/autoload.php';
```

Add 'use' before class name

```
use Minstersoft\ActiveCampaign\ActiveCampaign;

class ClassName {
 //...
}
```

Start by creating a new instance:

```
$activeCampaign = new ActiveCampaign(ACTIVE_CAMPAIGN_URL, ACTIVE_CAMPAIGN_KEY);
```

Your API key can be found in your account on the Settings page under the "Developer" tab.

Usage
-----

[](#usage)

Once instantiated, you can simply call one of the methods provided by the SDK:

```
$activeCampaign->contacts();
```

This will provide you with a list of available contacts.

To create a contact, you can use the `createContact` method:

```
$contact = $activeCampaign->createContact(
    'email' => 'johndoe@example.com',
    'firstName' => 'John',
    'lastName' => 'Doe',
);
```

When the request was successful, `$contact` will contain a Contact object with the contact details.

To retrieve an existing contact or create it when it is missing:

```
$contact = $activeCampaign->findOrCreateContact(
    'email' => 'johndoe@example.com',
    'firstName' => 'John',
    'lastName' => 'Doe',
);
```

When the request was successful, `$contact` will contain a Contact object with the contact details.

Tests
-----

[](#tests)

The package contains integration tests. You can run them using PHPUnit.

```
$ vendor/bin/phpunit

```

Changelog
---------

[](#changelog)

Refer to [CHANGELOG](CHANGELOG.md) for more information.

- [Thijs Kok](https://www.testmonitor.com/)
- [Stephan Grootveld](https://www.testmonitor.com/)
- [Frank Keulen](https://www.testmonitor.com/)
- [Contributors from original package](https://github.com/testmonitor/activecampaign/contributors)
- [Contributors from Minstersoft](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Refer to the [License](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~42 days

Recently: every ~57 days

Total

8

Last Release

1746d ago

Major Versions

1.0.6 → 2.0.02021-08-06

PHP version history (2 changes)1.0.0PHP 7.0.\*

1.0.6PHP &gt;=7.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea1e76e2e397a44680503015c53e55384d6aa840c63a23c5da5d0be3d07c9578?d=identicon)[Nitinai Supreeyaporn](/maintainers/Nitinai%20Supreeyaporn)

---

Top Contributors

[![nitinai-ms](https://avatars.githubusercontent.com/u/58520436?v=4)](https://github.com/nitinai-ms "nitinai-ms (30 commits)")[![stefanius](https://avatars.githubusercontent.com/u/2707905?v=4)](https://github.com/stefanius "stefanius (24 commits)")[![thijskok](https://avatars.githubusercontent.com/u/1344550?v=4)](https://github.com/thijskok "thijskok (19 commits)")[![ashtokalo](https://avatars.githubusercontent.com/u/1886284?v=4)](https://github.com/ashtokalo "ashtokalo (7 commits)")

---

Tags

apicampaignactiveactivecampaign

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/minstersoft-activecampaign/health.svg)

```
[![Health](https://phpackages.com/badges/minstersoft-activecampaign/health.svg)](https://phpackages.com/packages/minstersoft-activecampaign)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[get-stream/stream-chat

A PHP client for Stream Chat (https://getstream.io/chat/)

301.8M2](/packages/get-stream-stream-chat)

PHPackages © 2026

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