Install the TreviPay PHP library with the following command:
composer require trevipay/trevipay-php
The quickest and simplest way to get started is with the following:
$treviPay = new TreviPay\TreviPay\Client('API-KEY');
$webhookList = $treviPay->webhooks->list();
var_dump($webhookList);