1. Go to this page and download the library: Download homeful/kwyc-check 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/ */
use Homeful\KwYCCheck\Data\LeadData;
use Homeful\KwYCCheck\Models\Lead;
$lead = Lead::factory()->forContact()->create();
$data = LeadData::fromModel($lead);
use Homeful\KwYCCheck\Facades\KYC;
$svg = KYC::generateCampaignQRCOde(query_params: ['code' => 'ABC-123','identifier'=>'DEF-456','choice'=>'GHI-789']);
echo $svg;
//qr code points to https://kwyc-check.net/campaign-checkin/9ccef822-4209-4e0a-bb40-232da5cafdf1?code=ABC-111&identifier=DEF-222&choice=GHI-333