PHPackages                             surefirejack/convertkit - 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. surefirejack/convertkit

ActiveLibrary[API Development](/categories/api)

surefirejack/convertkit
=======================

ConvertKit SDK

419.5k↓33.3%PHP

Since Nov 26Pushed 5y ago2 watchersCompare

[ Source](https://github.com/surefirejack/convertkit)[ Packagist](https://packagist.org/packages/surefirejack/convertkit)[ RSS](/packages/surefirejack-convertkit/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Convertkit SDK
==============

[](#convertkit-sdk)

This is the (unofficial) ConvertKit SDK for working with the ConvertKit API

We created this for the API integration with our software, Deadline Funnel ().

Install
-------

[](#install)

Either download and include, or install via Composer:

```
composer require surefirejack/convertkit

```

Make a simple request
---------------------

[](#make-a-simple-request)

Create a new ConvertKit object with

1. Your user's API Key
2. Your user's API Secret Key

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

use ConvertKit\ConvertKit;

$apiKey = 'api-key-here';
$apiSecretKey = 'api-secret-key-here';

$ck = new ConvertKit($apiKey, $apiSecretKey);
```

List all sequences:

```
$sequences = $ck->sequence();
$response = $sequences->showall();
print_r($response);
```

List all subscribers:

```
$subscriber = $ck->subscriber();
$response = $subscriber->showall();
print_r($response);

// Show the details of the first subscriber returned
$firstName = $response->subscribers[0]->first_name;
$email = $response->subscribers[0]->email_address;
$fieldsObject = $response->subscribers[0]->fields;
```

View details of a specific subscriber

```
$subscriberId = 123456;
$response = $ck->subscriber($subscriberId)->view();
print_r($response);
```

Update a subscriber's custom fields

```
$subscriberId = 123456;
$customFields = array(
  'fields' => array(
      'deadlinetext' => 'Jan 22 2018'
  )
);

$response = $ck->subscriber($subscriberId)->update($customFields);

print_r($response);
```

View all forms

```
$response = $ck->form()->showall();
print_r($response);
```

View all custom fields

```
$response = $ck->customfield()->showall();
print_r($response);
```

Delete a custom field

```
$customFieldId = 567;

$customfield = $ck->customfield();
$response = $customfield->delete($customFieldId);

print_r($response);
```

Add webhook

```
// Register a webhook to be pinged when a subscriber recieves a tag
$tagId = 789;
$webhookUrl = "http://example.com/incoming";

$params = array(
    "target_url" => $webhookUrl,
    "event" => array(
        'name' => 'subscriber.tag_add',
        'tag_id'=> $tagId
    )

);

$webhook = $ck->webhook();
$response = $webhook->add($params);
print_r($response);
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity31

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1991676?v=4)[surefirejack](/maintainers/surefirejack)[@surefirejack](https://github.com/surefirejack)

---

Top Contributors

[![alektrich](https://avatars.githubusercontent.com/u/3201750?v=4)](https://github.com/alektrich "alektrich (5 commits)")

### Embed Badge

![Health badge](/badges/surefirejack-convertkit/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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