1. Go to this page and download the library: Download isa-sdk/sdk 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/ */
isa-sdk / sdk example snippets
use Isa\Sdk\Isa;
use Isa\Sdk\Zyins\Applicant;
use Isa\Sdk\Zyins\Coverage;
use Isa\Sdk\Zyins\Height;
use Isa\Sdk\Zyins\NicotineUsage;
use Isa\Sdk\Zyins\Reference\PrequalifyRequest;
use Isa\Sdk\Zyins\Sex;
use Isa\Sdk\Zyins\Weight;
use Isa\Sdk\Catalog\Products;
$isa = Isa::withBearer(); // reads ISA_TOKEN from env
$request = new PrequalifyRequest(
applicant: new Applicant(
dob: '1962-04-18',
sex: Sex::Male,
height: Height::fromFeetInches(5, 10),
weight: Weight::fromPounds(195),
state: 'NC',
nicotineUse: NicotineUsage::None,
),
coverage: Coverage::faceValue(25_000),
products: [Products::fex()->aetnaAccendo()],
);
$result = $isa->zyins->prequalify->run($request);
use Isa\Sdk\Isa;
use Isa\Sdk\Zyins\Applicant;
use Isa\Sdk\Zyins\Coverage;
use Isa\Sdk\Zyins\Height;
use Isa\Sdk\Zyins\NicotineUsage;
use Isa\Sdk\Zyins\Reference\PrequalifyRequest;
use Isa\Sdk\Zyins\Sex;
use Isa\Sdk\Zyins\Weight;
use Isa\Sdk\Catalog\Products;
$isa = Isa::withKeycode(
keycode: 'SDV-HWH-WDD',
email: '[email protected]',
);
$result = $isa->zyins->prequalify->run(new PrequalifyRequest(
applicant: new Applicant(
dob: '1962-04-18',
sex: Sex::Male,
height: Height::fromFeetInches(5, 10),
weight: Weight::fromPounds(195),
state: 'NC',
nicotineUse: NicotineUsage::None,
),
coverage: Coverage::faceValue(25_000),
products: [Products::fex()->aetnaAccendo()],
));
echo $result->plans[0]->pricing[0]->premium?->amount->display;