PHPackages                             balfour/laravel-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. [API Development](/categories/api)
4. /
5. balfour/laravel-klaviyo

ActiveLibrary[API Development](/categories/api)

balfour/laravel-klaviyo
=======================

A library for interacting with the Klaviyo API in Laravel

0.0.1-alpha(6y ago)8795[1 PRs](https://github.com/balfour-group/laravel-klaviyo/pulls)MITPHP

Since Feb 24Pushed 4y ago6 watchersCompare

[ Source](https://github.com/balfour-group/laravel-klaviyo)[ Packagist](https://packagist.org/packages/balfour/laravel-klaviyo)[ RSS](/packages/balfour-laravel-klaviyo/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

laravel-klaviyo
===============

[](#laravel-klaviyo)

A library for interacting with the Klaviyo API in Laravel.

*This library is in early release and is pending unit tests.*

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

[](#installation)

```
composer require balfour/laravel-klaviyo
```

Configuration
-------------

[](#configuration)

The package makes use of the following env vars:

- `KLAVIYO_ENABLED` \[default = `false`\]
- `KLAVIYO_API_KEY` \[default = `null`\]
- `KLAVIYO_QUEUE` \[default = `klaviyo`\]

If you would like to publish the config, you can do so using:

`php artisan vendor:publish --provider="Balfour\LaravelKlaviyo\ServiceProvider"`

If you plan to process `events` and `identities` on a queue, you'll need to make sure you have a queue worker running and handling the `KLAVIYO_QUEUE` jobs.

Usage
-----

[](#usage)

```
use App\Models\User;
use Balfour\LaravelKlaviyo\Event;
use Balfour\LaravelKlaviyo\Jobs\PushIdentity;
use Balfour\LaravelKlaviyo\Jobs\TrackEvent;
use Balfour\LaravelKlaviyo\Klaviyo;

$klaviyo = app(Klaviyo::class);

// pushing an identity
// in a real world, this may be a `user` model implementing the `IdentityInterface`
$user = User::find(1);
$klaviyo->pushIdentity($user);

// pushing an identity (using a queue)
$user = User::find(1);
PushIdentity::enqueue($user);

// tracking an event
$user = User::find(1);
$event = new Event(
    'Complete Checkout Step 2',
    [
        'product' => 'Chicken Soup',
        'price' => 'R100.00',
    ]
);
$event->fire($user);
// or
$klaviyo->trackEvent($user, $event);

// tracking an event (using a queue)
$event->enqueue($user);
// or
TrackEvent::enqueue($user, $event);

// in the case that you don't have an identity object, but just an email identifier
$event = new Event('Subscribed To Mailing List');
$event->fire('matthew@masterstart.com');

// create a mailing list
$klaviyo->createMailingList('My List Name');

// add email to mailing list
$klaviyo->addToMailingList('12345', 'matthew@masterstart.com');

// remove email from mailing list
$klaviyo->removeFromMailingList('12345', 'matthew@masterstart.com');
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2269d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/054093c4138d9bea138f6226b632f8f7ad0adb516562480f7f77868d481e75f0?d=identicon)[balfourgroup](/maintainers/balfourgroup)

---

Top Contributors

[![matthewgoslett](https://avatars.githubusercontent.com/u/1571743?v=4)](https://github.com/matthewgoslett "matthewgoslett (11 commits)")[![Gcobani](https://avatars.githubusercontent.com/u/8480669?v=4)](https://github.com/Gcobani "Gcobani (2 commits)")[![nicja](https://avatars.githubusercontent.com/u/2102143?v=4)](https://github.com/nicja "nicja (2 commits)")

### Embed Badge

![Health badge](/badges/balfour-laravel-klaviyo/health.svg)

```
[![Health](https://phpackages.com/badges/balfour-laravel-klaviyo/health.svg)](https://phpackages.com/packages/balfour-laravel-klaviyo)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[nickurt/laravel-postcodeapi

Universal PostcodeApi for Laravel 11.x/12.x/13.x

97221.2k](/packages/nickurt-laravel-postcodeapi)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)[spinen/laravel-clickup

SPINEN's Laravel Package for ClickUp.

282.2k](/packages/spinen-laravel-clickup)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
