Did also find a package, which is up-to-date with Laravel 8 and 9, and had it's latest release on Dec 7th, 2022, called eonvisualmedia/laravel-klaviyo.
That's all I found after like 5 minutes of Googling, the rest is up to you. 👍
@mohib Integrating Klaviyo with Laravel involves a few steps:
First, sign up for a Klaviyo account and create an API key.
Next, install the Klaviyo PHP library using Composer by running the command:
composer require klaviyo/klaviyo-php
In your Laravel application, create a service provider that will handle the initialization of the Klaviyo client. In the boot method of the service provider, you can use the Klaviyo API key to initialize the client and make it available through the application's service container.
You can use the Klaviyo client in your controller or other parts of the application to perform operations such as adding or updating subscribers, creating and sending campaigns, and more.
You can also use Klaviyo's webhooks to track events in your application and trigger automation workflows or segmentation.
Here is an example of how you can use the Klaviyo client to subscribe a user to a list: