Install the Signplus PHP SDK package

composer install alohi/signplus

Call your first SDK method

<?php

declare(strict_types=1);

require_once __DIR__ . '/../vendor/autoload.php';

use Signplus\Client;
use Signplus\Models\EnvelopeFlowType;
use Signplus\Models\EnvelopeLegalityLevel;
use Signplus\Models\CreateEnvelopeRequest;

$sdk = new Client(accessToken: 'YOUR_TOKEN');

$input = new CreateEnvelopeRequest(
    name: 'My Awesome Envelope',
    flowType: EnvelopeFlowType::RequestSignature,
    legalityLevel: EnvelopeLegalityLevel::Ses,
    expiresAt: 1822566338,
    comment: 'comment',
    sandbox: true
);

$response = $sdk->Signplus->createEnvelope(input: $input);

print_r($response);