PHPackages                             tobyberesford/php-klaviyo - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. tobyberesford/php-klaviyo

AbandonedArchivedLibrary[Mail &amp; Notifications](/categories/mail)

tobyberesford/php-klaviyo
=========================

Klaviyo PHP SDK

v0.1(7y ago)12.5k1Apache-2.0PHPPHP &gt;=5.2.0

Since Apr 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/tobyberesford/php-klaviyo)[ Packagist](https://packagist.org/packages/tobyberesford/php-klaviyo)[ Docs](https://github.com/tobyberesford/php-klaviyo)[ RSS](/packages/tobyberesford-php-klaviyo/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Klaviyo PHP SDK + GET and PUT
=============================

[](#klaviyo-php-sdk--get-and-put)

This is a fork of the [official Klaviyo PHP API](https://github.com/klaviyo/php-klaviyo) that also adds in GET and PUT functionality from [robwittman/php-klaviyo](https://github.com/robwittman/php-klaviyo). The Guzzle requirement of robwittman was removed by borrowing from the [Order Desk PHP Client](https://gist.github.com/sparkweb/c6a5a21ab44a23589b9c). It provides a minimal-abstraction wrapper for the track, identify, metrics, profiles, lists (v1 and v2), campaigns, and templates APIs all from the same class.

Table of Contents
-----------------

[](#table-of-contents)

1. [Metrics](#metrics)
    - [Listing metrics](#metrics-listing-metrics)
    - [Listing the complete event timeline](#metrics-listing-the-complete-event-timeline)
    - [Listing the event timeline for a particular metric](#metrics-listing-the-event-timeline-for-a-particular-metric)
    - [Exporting metric data](#metrics-exporting-metric-data)
2. [Profiles](#profiles)
    - [Retrieving a Person's Attributes](#profiles-retrieving-a-persons-attributes)
    - [Adding or Updating a Person's Attributes](#profiles-adding-or-updating-a-persons-attributes)
    - [Listing a person's complete event timeline](#profiles-listing-a-persons-complete-event-timeline)
    - [Listing a person's event timeline for a particular metric](#profiles-listing-a-persons-event-timeline-for-a-particular-metric)
    - [Getting all people](#profiles-getting-all-people)
3. [Lists](#lists)
    - [Lists in Account](#lists-lists-in-account)
    - [Creating a List](#lists-creating-a-list)
    - [List Information](#lists-list-information)
    - [Updating a List](#lists-updating-a-list)
    - [Deleting a List](#lists-deleting-a-list)
    - [Checking if Someone is in a List](#lists-checking-if-someone-is-in-a-list)
    - [Checking if Someone is in a Segment](#lists-checking-if-someone-is-in-a-segment)
    - [Adding Someone to a List](#lists-adding-someone-to-a-list)
    - [Batch Adding People to a List](#lists-batch-adding-people-to-a-list)
    - [Batch Removing People from a List](#lists-batch-removing-people-from-a-list)
    - [Exclude or Unsubscribe Someone from a List](#lists-exclude-or-unsubscribe-someone-from-a-list)
    - [List Exclusions or Unsubscribes for a List](#lists-list-exclusions-or-unsubscribes-for-a-list)
    - [List Exclusions or Unsubscribes](#lists-list-exclusions-or-unsubscribes)
    - [Exclude or Unsubscribe Someone from All Email](#lists-exclude-or-unsubscribe-someone-from-all-email)
4. [Lists v2](#lists-v2)
    - [Create a List](#lists-v2-create-a-list)
    - [Get Lists](#lists-v2-get-lists)
    - [Get List Details](#lists-v2-get-list-details)
    - [Update a List](#lists-v2-update-a-list)
    - [Delete a List](#lists-v2-delete-a-list)
    - [Subscribe to List](#lists-v2-subscribe-to-list)
    - [Check List Subscriptions](#lists-v2-check-list-subscriptions)
    - [Unsubscribe from List](#lists-v2-unsubscribe-from-list)
    - [Add to List](#lists-v2-add-to-list)
    - [Check List Membership](#lists-v2-check-list-membership)
    - [Remove from List](#lists-v2-remove-from-list)
    - [Get All Exclusions on a List](#lists-v2-get-all-exclusions-on-a-list)
    - [Get Group Member Emails](#lists-v2-get-group-member-emails)
5. [Campaigns](#campaigns)
    - [Campaigns in Account](#campaigns-campaigns-in-account)
    - [Creating a Campaign](#campaigns-creating-a-campaign)
    - [Campaign Information](#campaigns-campaign-information)
    - [Updating a Campaign](#campaigns-updating-a-campaign)
    - [Send a Campaign Immediately](#campaigns-send-a-campaign-immediately)
    - [Schedule a Campaign](#campaigns--schedule-a-campaign)
    - [Cancel a Campaign](#campaigns-cancel-a-campaign)
    - [Clone a Campaign](#campaigns-clone-a-campaign)
    - [Campaign Recipient Information](#campaigns-campaign-recipient-information)
6. [Templates](#templates)
    - [List all templates](#templates-list-all-templates)
    - [Creating a template](#templates-creating-a-template)
    - [Updating an email template](#templates-updating-an-email-template)
    - [Deleting template](#templates-deleting-template)
    - [Clone template](#templates-clone-template)
    - [Render template](#templates-render-template)
    - [Render template and send email](#templates-render-template-and-send-email)
7. [Track](#track)
    - [Basic Event Call](#track-basic-event-call)
8. [Identify](#identify)
    - [Basic Identify Call](#identify-basic-identify-call)

[Metrics](#metrics-top)
-----------------------

[](#metrics)

### [Listing metrics](#metrics-listing-metrics-top)

[](#listing-metrics)

```

```

### [Listing the complete event timeline](#metrics-listing-the-complete-event-timeline-top)

[](#listing-the-complete-event-timeline)

```

```

### [Listing the event timeline for a particular metric](#metrics-listing-the-event-timeline-for-a-particular-metric-top)

[](#listing-the-event-timeline-for-a-particular-metric)

```

```

### [Exporting metric data](#metrics-exporting-metric-data-top)

[](#exporting-metric-data)

```

```

[Profiles](#profiles-top)
-------------------------

[](#profiles)

### [Retrieving a Person's Attributes](#profiles-retrieving-a-persons-attributes-top)

[](#retrieving-a-persons-attributes)

```

```

### [Adding or Updating a Person's Attributes](#profiles-adding-or-updating-a-persons-attributes-top)

[](#adding-or-updating-a-persons-attributes)

```
