This is my code. I am still unsure how to do this without using the use command.
sc_include_library(“prj”,“vendor”, “vendor/autoload.php”);
use veryfi\Client;
$client_id = ‘HIDING FOR SECURITY REASONS’;
$client_secret = ‘HIDING FOR SECURITY REASONS’;
$username = ‘HIDING FOR SECURITY REASONS’;
$api_key = ‘HIDING FOR SECURITY REASONS’;
$veryfi_client = new Client($client_id, $client_secret, $username, $api_key);
$categories = array(‘Advertising & Marketing’, ‘Automotive’);
$file = {Receipt};
$return_associative = true;
$delete_after_processing = true;
$json_response = json_decode($veryfi_client->process_document($file, $categories, $delete_after_processing), $return_associative);
print_r($json_response);
print($json_response[‘total’]);
print($json_response[‘vendor’][‘raw_name’])