PHPackages                             thiio/active-campaign-php-sdk - 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. thiio/active-campaign-php-sdk

ActiveLibrary[API Development](/categories/api)

thiio/active-campaign-php-sdk
=============================

This is a SDK built in PHP for consuming Active Campaing's v3 API as detailed in https://www.activecampaign.com/

0.0.2(2y ago)07MITPHP

Since Nov 29Pushed 2y ago2 watchersCompare

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

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

active-campaign-v3-api-php
==========================

[](#active-campaign-v3-api-php)

Implementation for consuming ActiveCampaign's v3 API

Note:
=====

[](#note)

This is a beta version for this library, the main goal is to consume the ActiveCampaign's V3 API.

Required
========

[](#required)

An ActiveCampaign's account is required. You can sign up

Installation
============

[](#installation)

```
```

Models Implemented
==================

[](#models-implemented)

- Contacts
- Tags
- Lists
- Group List
- Connections
- E-Commerce Customers
- E-Commerce Orders

Example of using this library
=============================

[](#example-of-using-this-library)

```
//YOUR ACTIVE CAMPAIGN CREDENTIALS
$url = "";
$key = "";

//Initialize a new instance of active campaign library class
$client = new ActiveCampaign();
$client->initialize($url, $key);

/*
Instanciate a contact model and add values to the attributes specified on:

https://developers.activecampaign.com/reference#contact

*/
$contact = new ActiveCampaignContact();
$contact->setEmail("jhon_doe@gmail.com");
$contact->setFirstName("Jhon");
$contact->setLastName("Doe");
$contact->setPhone("+529985656464");

//Fetch contacts class and perform the create request
$contacts = $client->contacts();

try{
    //Perform create request sending the contact model
     $response = $contacts->create($contact);

    //If response success var_dump all content
    if($response->success){

        echo "Contact successfully created \n";
        var_dump($response->body->contact);

    }else{
        //If any error or message is present print it out
        if(isset($response->body->message)){
            echo $message;
        }
        if(isset($response->body->errors)){
            foreach($response->body->errors as $error){
                echo $error->title."\n";
                echo $error->detail."\n";
                echo $error->code."\n";
            }
        }

    }
}catch(Exception $e){
    echo $e->getMessage();
}
```

For more examples go to examples folder inside the project
==========================================================

[](#for-more-examples-go-to-examples-folder-inside-the-project)

This repository was forked from
==========================================================================================

[](#this-repository-was-forked-from-httpsgithubcomdevelopferactive-campaign-v3-api-php)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

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

Total

2

Last Release

893d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5478051a21d83b8cab7a5e101c9185f360c9361b6c42b2903673d5b398a203e5?d=identicon)[enriquehoy](/maintainers/enriquehoy)

---

Top Contributors

[![cenriquene](https://avatars.githubusercontent.com/u/9888385?v=4)](https://github.com/cenriquene "cenriquene (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thiio-active-campaign-php-sdk/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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