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

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

jmarcone/klaviyo-sdk
====================

Empowering creators to own their destiny

1.0.1.20220329(4y ago)04MITPHPPHP ^7.3 || ^8.0

Since Mar 30Pushed 4y agoCompare

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

READMEChangelogDependencies (4)Versions (4)Used By (0)

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

[](#klaviyo-php-sdk)

- SDK version: 1.0.1.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.

### optional 1a: with composer installed

[](#optional-1a-with-composer-installed)

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

### optional 1b: without composer installed

[](#optional-1b-without-composer-installed)

If you don't have composer installed, you can get an executable version by running `bash composer.sh`

This will download an executable version of composer that you can use by running `php composer.phar` wherever you would otherwise run `composer`.

You can then install the library from Packagist by running `php composer.phar 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 `bash composer.json`

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

[](#usage-example)

```
