Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
7b6f8a8
Update `convertkit.com` to `kit.com`
n7studios Sep 30, 2025
53afc2f
Add composer commands
n7studios Sep 30, 2025
d8cbe67
Revert composer commands
n7studios Sep 30, 2025
fbc73e2
Fix API Doc Generation
n7studios Sep 30, 2025
7bc6eaa
Fix Failing Tests
n7studios Sep 30, 2025
bf2b64e
Change ServerException to ClientException for refresh token with inva…
n7studios Sep 30, 2025
e33ebef
Merge remote-tracking branch 'origin/fix-tests' into update-kit-domain
n7studios Sep 30, 2025
b8500bb
Merge remote-tracking branch 'origin/fix-tests' into add-composer-com…
n7studios Sep 30, 2025
2505f9f
Merge remote-tracking branch 'origin/fix-tests' into fix-api-docs
n7studios Sep 30, 2025
c1ed992
Add Composer Commands
n7studios Sep 30, 2025
522723b
Add `get_subscriber_stats` method
n7studios Sep 30, 2025
511b40e
Update method URLs to new API docs
n7studios Sep 30, 2025
964bced
Add `get_broadcasts_stats` method
n7studios Sep 30, 2025
a93716a
Add `testGetBroadcastsStatsWithTotalCount` test
n7studios Sep 30, 2025
b7ab7f9
Add `get_broadcast_link_clicks` method
n7studios Sep 30, 2025
8480d84
Add `update_tag_name` method
n7studios Sep 30, 2025
7150507
Fix tests
n7studios Sep 30, 2025
4f088b7
Remove `include_total_count`, as not supported
n7studios Sep 30, 2025
7e6515a
Merge pull request #115 from Kit/add-update-tag-method
n7studios Oct 3, 2025
3a8791b
Merge pull request #113 from Kit/add-get-link-clicks-for-broadcast-me…
n7studios Oct 3, 2025
d532506
Merge pull request #109 from Kit/fix-api-docs
n7studios Oct 3, 2025
715a58a
Merge pull request #108 from Kit/add-composer-commands
n7studios Oct 3, 2025
e80ea8e
Merge pull request #106 from Kit/update-kit-domain
n7studios Oct 3, 2025
0e4f71d
Merge remote-tracking branch 'origin/fix-tests' into add-subscriber-s…
n7studios Oct 3, 2025
ad4c6a5
Reinstate tests
n7studios Oct 3, 2025
e0a848e
Merge pull request #110 from Kit/add-subscriber-stats-method
n7studios Oct 3, 2025
30df842
Merge branch 'fix-tests' into add-get-stats-for-a-list-of-broadcasts-…
n7studios Oct 3, 2025
4e90044
Reinstate method and tests
n7studios Oct 3, 2025
f2adc1b
Merge pull request #112 from Kit/add-get-stats-for-a-list-of-broadcas…
n7studios Oct 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: ConvertKit support
url: https://convertkit.com/support/
- name: Kit support
url: https://kit.com/support/
about: |
Please only file issues here that you believe represent actual bugs or feature requests for the ConvertKit PHP SDK.
Please only file issues here that you believe represent actual bugs or feature requests for the Kit PHP SDK.

If you're having general trouble with your ConvertKit integration, please reach out to support.
If you're having general trouble with your Kit integration, please reach out to support.
4 changes: 2 additions & 2 deletions DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Commit the updated files, which should comprise of:

## Create a New Release

[Create a New Release](https://github.com/ConvertKit/convertkitsdk-php/releases/new), completing the following:
[Create a New Release](https://github.com/kit/convertkitsdk-php/releases/new), completing the following:

- Choose a tag: Click this button and enter the new version number (e.g. `1.0`)
- Release title: The version number (e.g. `1.0`)
Expand Down Expand Up @@ -91,4 +91,4 @@ When you're happy with the above, click `Publish Release`.

This will then make the release available to developers, who can include it manually or using composer.

The release will also be available to view on the [Releases](https://github.com/ConvertKit/convertkitsdk-php/releases) section of this GitHub repository.
The release will also be available to view on the [Releases](https://github.com/kit/convertkitsdk-php/releases) section of this GitHub repository.
2 changes: 1 addition & 1 deletion SETUP.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Setup Guide

This document describes how to setup your development environment, so that it is ready to run, develop and test the ConvertKit PHP SDK.
This document describes how to setup your development environment, so that it is ready to run, develop and test the Kit PHP SDK.

Suggestions are provided for the LAMP/LEMP stack and Git client are for those who prefer the UI over a command line and/or are less familiar with
PHP, MySQL and Git - but you're free to use your preferred software.
Expand Down
13 changes: 13 additions & 0 deletions TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@ If you haven't yet set up your local development environment, refer to the [Setu

If you haven't yet created a branch and made any code changes, refer to the [Development Guide](DEVELOPMENT.md)

### Familiar with PHP Coding Standards, PHPStan and PHPUnit?

The following Composer commands can be used:

| Command | Short Command | Description |
|---------|---------------|-------------|
| `composer php-coding-standards` | `composer phpcs` | Runs PHP Coding Standards on the `/src` folder |
| `composer fix-php-coding-standards` | `composer phpcbf` | Fix PHP files to meet PHP Coding Standards on the `/src` folder |
| `composer php-coding-standards-on-tests` | `composer phpcs-tests` | Runs PHP Coding Standards on the `/tests` folder |
| `composer fix-php-coding-standards-on-tests` | `composer phpcbf-tests` | Fix PHP files to meet PHP Coding Standards on the `/tests` folder |
| `composer static-analysis` | `composer phpstan` | Runs PHPStan static analysis with increased memory limit |
| `composer test` | `composer test` | Builds and runs WPUnit tests |

## Write (or modify) a test

If your work creates new functionality, write a test.
Expand Down
32 changes: 25 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
{
"name": "convertkit/convertkitapi",
"description": "ConvertKit PHP SDK for the ConvertKit API",
"description": "Kit PHP SDK for the Kit API",
"keywords": [
"convertkit",
"kit",
"api",
"forms"
"forms",
"tags",
"sequences",
"broadcasts",
"emails",
"subscribers"
],
"homepage": "https://convertkit.com/",
"homepage": "https://developers.kit.com/welcome",
"license": "GPLv3",
"authors": [
{
"name": "ConvertKit and contributors",
"homepage": "https://github.com/convertkit/convertkitsdk-php/contributors"
"name": "Kit and contributors",
"homepage": "https://github.com/kit/convertkitsdk-php/contributors"
}
],
"require": {
Expand All @@ -23,7 +29,8 @@
"vlucas/phpdotenv": "^5.5",
"phpunit/phpunit": "^5.7 || ^9.0",
"squizlabs/php_codesniffer": "^3.3",
"phpstan/phpstan": "^2.0"
"phpstan/phpstan": "^2.0",
"saggre/phpdocumentor-markdown": "^1.0"
},
"autoload": {
"psr-4": {
Expand All @@ -38,6 +45,17 @@
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"create-docs": "phpDocumentor --directory=src --target=docs --template='vendor/saggre/phpdocumentor-markdown/themes/markdown'"
"create-docs": "phpDocumentor --directory=src --target=docs --template='vendor/saggre/phpdocumentor-markdown/themes/markdown'",
"phpcs": "vendor/bin/phpcs ./ -s -v",
"phpcbf": "vendor/bin/phpcbf ./ -s -v",
"phpcs-tests": "vendor/bin/phpcs ./tests --standard=phpcs.tests.xml -s -v",
"phpcbf-tests": "vendor/bin/phpcbf ./tests --standard=phpcs.tests.xml -s -v",
"phpstan": "vendor/bin/phpstan analyse --memory-limit=1250M",
"php-coding-standards": "vendor/bin/phpcs ./ -s -v",
"fix-php-coding-standards": "vendor/bin/phpcbf ./ -s -v",
"php-coding-standards-on-tests": "vendor/bin/phpcs ./tests --standard=phpcs.tests.xml -s -v",
"fix-php-coding-standards-on-tests": "vendor/bin/phpcbf ./tests --standard=phpcs.tests.xml -s -v",
"php-static-analysis": "vendor/bin/phpstan analyse --memory-limit=1250M",
"test": "vendor/bin/phpunit --verbose --stop-on-failure @additional_args"
}
}
18 changes: 18 additions & 0 deletions docs/Home.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

This is an automatically generated documentation for **Documentation**.

## Namespaces

### \ConvertKit_API

#### Classes

| Class | Description |
|-------------------------------------------------------------|----------------------|
| [`ConvertKit_API`](./classes/ConvertKit_API/ConvertKit_API) | ConvertKit API Class |

#### Traits

| Trait | Description |
|---------------------------------------------------------------------------|-----------------------|
| [`ConvertKit_API_Traits`](./classes/ConvertKit_API/ConvertKit_API_Traits) | ConvertKit API Traits |
Loading