Skip to content
Snippets Groups Projects
Zandor Smith's avatar
Zandor Smith authored
fix(deps): update semantic-release monorepo

See merge request !2
aa01fc56
History

Solvari PHP SDK

Build Version License PHP Version Downloads

PHP framework for updating the lead status in Solvari Pro.

Install

You can use composer to include this framework into your project. The project is available through Packagist.

composer require zandor300/solvari-php-sdk

Usage

use Solvari\Solvari;
use Solvari\SolvariLeadStatus;
use Solvari\Exception\SolvariException;

$solvari = new Solvari("API_KEY_HERE");

$solvariLeadId = 12345678;
$targetSolvariStatus = SolvariLeadStatus::QUOTE_SEND;

try {
    $solvari->setLeadStatus($solvariLeadId, $targetSolvariStatus);
} catch(SolvariException $e) {
    echo $e->getMessage();
}