PHPackages                             janiskelemen/convertkitapi - 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. janiskelemen/convertkitapi

ActiveLibrary

janiskelemen/convertkitapi
==========================

ConvertKit API SDK

0622PHP

Since Feb 2Pushed 5y agoCompare

[ Source](https://github.com/janiskelemen/ConvertKitSDK-PHP)[ Packagist](https://packagist.org/packages/janiskelemen/convertkitapi)[ RSS](/packages/janiskelemen-convertkitapi/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

ConvertKit SDK PHP
==================

[](#convertkit-sdk-php)

ConvertKit's official PHP SDK

### Installation

[](#installation)

#### Standard installation

[](#standard-installation)

1. Download or clone this repository
2. Run `composer install`
3. Add `./vendor/autoload.php` to your project

#### Installation with package manager

[](#installation-with-package-manager)

If your project uses [Composer](https://getcomposer.org/), you can install the ConvertKitSDK-PHP package as a composer package. This allows you to have this project as a dependency without the ConvertKitSDK-PHP files being checked into your source code.

```
composer require convertkit/convertkitapi:dev-master
```

Please note that since ConvertKitSDK-PHP is not yet versioned, your project will always download the latest files from master every time you run `composer install` which may subject you to breaking changes in the future.

### Usage

[](#usage)

Get your ConvertKit API Key and API Secret [here](https://app.convertkit.com/account/edit) and set it somewhere in your application.

```
$api = new \ConvertKit_API\ConvertKit_API($api_key, $api_secret);
```

### Examples

[](#examples)

**Subscribe to a form**

Add a subscriber to a form. The `$subscribed` response will be an object.

```
$tag_id = '99999'; // This tag must be valid for your ConvertKit account.

$options = [
			'email'      => 'test@test.com',
			'name'       => 'Full Name',
			'first_name' => 'First Name',
			'tags'       => $tag_id,
			'fields'     => [
				'phone' => 134567891243,
				'shirt_size' => 'M',
				'website_url' => 'testurl.com'
			]
		];

$subscribed = $api->form_subscribe($this->test_form_id, $options);
```

**Get Subscriber ID**

Get the ConvertKit Subscriber ID for a given email address.

```
$subscriber_id = $api->get_subscriber_id( $email );
```

**Get Subscriber**

Get subscriber data for a ConvertKit Subscriber.

```
$subscriber = $api->get_subscriber( $subscriber_id );
```

**Get Subscriber Tags**

Get all tags applied to a Subscriber.

```
$subscriber_tags = $api->get_subscriber_tags( $subscriber_id );
```

**Add Tag to a Subscriber**

Apply a tag to a Subscriber.

```
$tag_id = '99999'; // This tag must be valid for your ConvertKit account.
$api->add_tag(tag_id, [
			'email' => 'test@test.com'
		]);
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/41ce0a7670be5be4145b780488d437c3201d24782f6f137f0a0fca436a4d6600?d=identicon)[Janiskelemen](/maintainers/Janiskelemen)

---

Top Contributors

[![growdev](https://avatars.githubusercontent.com/u/290886?v=4)](https://github.com/growdev "growdev (5 commits)")[![tnorthcutt](https://avatars.githubusercontent.com/u/796639?v=4)](https://github.com/tnorthcutt "tnorthcutt (5 commits)")[![fideloper](https://avatars.githubusercontent.com/u/467411?v=4)](https://github.com/fideloper "fideloper (4 commits)")[![jhull](https://avatars.githubusercontent.com/u/27031243?v=4)](https://github.com/jhull "jhull (2 commits)")[![iamcaptaincode](https://avatars.githubusercontent.com/u/9145531?v=4)](https://github.com/iamcaptaincode "iamcaptaincode (1 commits)")[![bogusred](https://avatars.githubusercontent.com/u/8145300?v=4)](https://github.com/bogusred "bogusred (1 commits)")[![intellow](https://avatars.githubusercontent.com/u/40676515?v=4)](https://github.com/intellow "intellow (1 commits)")

### Embed Badge

![Health badge](/badges/janiskelemen-convertkitapi/health.svg)

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

PHPackages © 2026

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