PHPackages                             klaviyo/api - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. klaviyo/api

ActiveLibrary[HTTP &amp; Networking](/categories/http)

klaviyo/api
===========

PHP SDK for Klaviyo's API.

19.0.0(1mo ago)662.3M↓45.8%22[3 issues](https://github.com/klaviyo/klaviyo-api-php/issues)3MITPHPPHP ^8.1

Since Oct 19Pushed 1mo ago6 watchersCompare

[ Source](https://github.com/klaviyo/klaviyo-api-php)[ Packagist](https://packagist.org/packages/klaviyo/api)[ Docs](https://developers.klaviyo.com)[ RSS](/packages/klaviyo-api/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (4)Versions (51)Used By (3)

Klaviyo PHP SDK
===============

[](#klaviyo-php-sdk)

- SDK version: 19.0.0
- API Revision: 2026-04-15

Helpful Resources
-----------------

[](#helpful-resources)

- [API Reference](https://developers.klaviyo.com/en/v2026-04-15/reference)
- [API Guides](https://developers.klaviyo.com/en/v2026-04-15/docs)
- [Postman Workspace](https://www.postman.com/klaviyo/workspace/klaviyo-developers)

Design &amp; Approach
---------------------

[](#design--approach)

This SDK is a thin wrapper around our API. See our API Reference for full documentation on behavior.

This SDK mirrors the organization and naming convention of the above language-agnostic resources, with a few namespace changes to conform to PHP idioms (details in Appendix).

Organization
------------

[](#organization)

This SDK is organized into the following resources:

- Accounts
- Campaigns
- Catalogs
- Conversations
- Coupons
- CustomObjects
- DataPrivacy
- Events
- Flows
- Forms
- Images
- Lists
- Metrics
- Profiles
- Reporting
- Reviews
- Segments
- Tags
- Templates
- TrackingSettings
- WebFeeds
- Webhooks

### Requirements

[](#requirements)

PHP 8.1 and later.

Installation
------------

[](#installation)

You can install this package using [our Packagist package](https://packagist.org/packages/klaviyo/api):

```
composer require klaviyo/api
```

Usage Example
-------------

[](#usage-example)

> **Note**: The following examples use [named arguments](https://www.php.net/manual/en/functions.arguments.php#functions.named-arguments), which were introduced in PHP 8. If using an older version of PHP, you may need to explicitly pass omitted positional arguments. For example, if a given function has the following optional parameters `someFunction($a=1, $b=2, $c=3)`, and you wish to only set `$b`, you must pass in `someFunction($a=null, $b=$YOUR_VALUE)`.

```
