1. Go to this page and download the library: Download th3mouk/reactive-klaviyo library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
th3mouk / reactive-klaviyo example snippets
use Clue\React\Buzz\Browser as ClueBrowser;
use Rxnet\HttpClient\Browser as RxBrowser;
$clue = new ClueBrowser(EventLoop::getLoop());
$httpClient = new RxBrowser($clue);
$client = new Client('klaviyo-api-token', $httpClient);