PHPackages                             klaviyo/sdk - 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/sdk

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

klaviyo/sdk
===========

Empowering creators to own their destiny

1.0.3.20220329(3y ago)17218.6k↓17.3%8[2 issues](https://github.com/klaviyo/klaviyo-php-sdk/issues)[1 PRs](https://github.com/klaviyo/klaviyo-php-sdk/pulls)MITPHPPHP ^7.3 || ^8.0

Since Mar 30Pushed 2y ago2 watchersCompare

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

READMEChangelog (4)Dependencies (2)Versions (6)Used By (0)

Klaviyo PHP SDK (Legacy)
========================

[](#klaviyo-php-sdk-legacy)

Legacy Notice
-------------

[](#legacy-notice)

This SDK is set to be deprecated + retired on 2024-06-30.

We have a NEW PHP SDK to go along with our [new API](https://developers.klaviyo.com/en/reference/api_overview).

We recommend migrating over to our [newest SDK](https://github.com/klaviyo/klaviyo-api-php).

You can read more about our SDK release history and support [here](https://developers.klaviyo.com/en/docs/sdk_overview)

For a comparison between our old and new APIs, check out [this guide](https://developers.klaviyo.com/en/docs/apis_comparison_chart).

Klaviyo PHP SDK
---------------

[](#klaviyo-php-sdk)

- SDK version: 1.0.3.20220329

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

[](#helpful-resources)

- [API Reference](https://developers.klaviyo.com/en/reference/api-overview)
- [API Guides](https://developers.klaviyo.com/en/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 API 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:

- Campaigns
- DataPrivacy
- ListsSegments
- Metrics
- Profiles
- Templates
- TrackIdentify

Installation
============

[](#installation)

You can install this package using either [Packagist](https://packagist.org/packages/klaviyo/sdk), or the source code.

Option 1: Packagist
-------------------

[](#option-1-packagist)

You can install this library using Packagist.

If you have composer installed, you can run: `composer require klaviyo/sdk`

Option 2: Source code
---------------------

[](#option-2-source-code)

You can also install this library directly from source code, without using the Packagist package, as follows:

1. cloning this repo
2. running `composer update` (within the repo)

Usage Example
=============

[](#usage-example)

```
