jeffersongoncalves/laravel-convertkit
Laravel ConvertKit offers a clean integration with the ConvertKit API for managing subscribers, forms, tags, and broadcasts directly from your Laravel app. Configure your API key, use the included services and facade, and build email marketing workflows faster with familiar Laravel conventions.
php artisan vendor:publish --tag=convertkit-config
The tag may differ; check the README if that tag is not registered..env — typically CONVERTKIT_API_KEY and CONVERTKIT_API_SECRET — and confirm whether the package reads a dedicated config/convertkit.php or Laravel’s config/services.php.config/convertkit.php, the service provider bindings, the facade alias, and the package tests/examples. The tests usually reveal the intended day-to-day API shape faster than the README.use ConvertKit\Facades\ConvertKit;
$subscriber = ConvertKit::subscribers()->create([
'email' => $user->email,
'first_name' => $user->first_name,
]);
ConvertKit::tags()->tag($subscriber['id'], $tagId);
Method names and response shapes may differ; confirm against the package README before relying on the exact signature.users.convertkit_subscriber_id, convertkit_form_id, and convertkit_tag_id so repeated syncs are cheap and auditable.LazyCollection, Bus::batch, or a scheduled command rather than looping over thousands of users in a single request.429 responses with backoff and do not blindly retry broadcast sends or other non-idempotent actions.page/per_page pattern; use the package’s iterators if provided, or inspect response metadata before looping.errors array. Catch the package’s exception type, log the response body with secrets redacted, and map known errors to domain-level failures..env or a secret manager, never in version control, and never log request URLs if the key is passed as a query parameter..env or config values, run php artisan config:cache in deployment and clear config in tests. Stale cached config is a common source of “wrong account” bugs.^1.0 and watch the changelog. As an initial 1.0.0 release, the surface area is new; confirm method signatures and response shapes against the README before broad adoption.1.0.0 release notes cover subscribers, forms, sequences, tags, and broadcasts but do not advertise webhook support. If you need event-driven sync, plan to poll or build your own webhook endpoint around ConvertKit’s capabilities.How can I help you explore Laravel packages today?