ConvertKit
Kit (formerly ConvertKit) integration for Laravel. A Kit v4 API client for subscribers, forms, tags and custom fields, a feed-driven bridge to artisanpack-ui/forms, a public rate-limited subscribe endpoint for any frontend, Artisan commands, and a recording test double.
v1.2.0
MIT License
★ 0
composer require artisanpack-ui/convertkit
$ composer require artisanpack-ui/convertkit
$ php artisan migrate
✓ kit_feeds table created
$ php artisan convertkit:test
✓ Reached Kit with the configured API key
convertkit()->subscribers()->create( ... )
What it does
From form submit to Kit subscriber
Call the API directly, or wire a feed to an existing form and let every matching submission map itself onto a Kit payload and dispatch to the queue.
Kit v4 API client
Create and find subscribers, tag and untag, unsubscribe, and list forms, tags and custom fields — with response caching and a refresh escape hatch.
Form feeds
Point a feed at an artisanpack-ui/forms form and every matching submission is mapped to a Kit payload and dispatched to a queue.
Field maps and conditions
Map Kit destinations to your field slugs, and gate a feed behind all-or-any rule sets with six operators.
Public subscribe endpoint
POST /convertkit/subscribers for any frontend — always 202, queue-backed, rate limited to 10 attempts per IP per minute.
Artisan commands
convertkit:test, convertkit:sync for cached reference data, and a convertkit:feeds wizard to list, create and delete feeds.
FakeConvertKit
Swap in a recording fake with assertSubscribed, assertTagged and assertSentCount so consumer tests stay hermetic.
Get started
Install and verify your key
Generate a Kit v4 API key under Advanced → API, set CONVERTKIT_API_KEY, then confirm the connection with convertkit:test.
1 · Install
composer require artisanpack-ui/convertkit
2 · Publish Config
php artisan vendor:publish --tag=convertkit-config
3 · Publish and run migrations
php artisan vendor:publish --tag=convertkit-migrations
4 · Verify the API key
php artisan convertkit:test
Requirements
What you need
| Requirement | Detail | |
|---|---|---|
| PHP | 8.2+ | |
| Laravel | 10, 11, 12 or 13 | |
| Kit account | A v4 API key from Advanced → API | |
| Form feeds | artisanpack-ui/forms (optional) and a queue worker | |
| Feed-admin routes sit under admin/convertkit behind the manage-convertkit-feeds Gate ability — define your own closure to decide who can manage feeds. Three hooks fire around every subscribe attempt for logging and side effects. | ||
Grow your list with ConvertKit
A Kit v4 client, form feeds, a public subscribe endpoint and a test double that never touches the network. Free and open source under the MIT license.
