PHP code example of utanvet-ellenor / client-php

1. Go to this page and download the library: Download utanvet-ellenor/client-php 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/ */

    

utanvet-ellenor / client-php example snippets



  

  use UtanvetEllenor/Client;

  $client = new Client('publicApiKey', 'privateApiKey');
  $client->email = '[email protected]';
  $client->threshold = 0.8;

  $response = $client->sendRequest();

  use UtanvetEllenor/Client;

  $client = new Client('publicApiKey', 'privateApiKey');
  $client->email = '[email protected]';
  $client->countryCode = 'HU';
  $client->postalCode = '8640';
  $client->phoneNumber = '+36209238883';
  $client->addressLine = 'Szigligeti utca 10.';
  $client->threshold = 0.8;

  $response = $client->sendRequest();

  use UtanvetEllenor/Client;

  $client = new Client('publicApiKey', 'privateApiKey');
  $client->email = '[email protected]';
  $client->outcome = 1;
  $client->orderId = 'order-123456';
  $client->countryCode = 'HU';
  $client->postalCode = '8640';
  $client->phoneNumber = '+36209238883';
  $client->addressLine = 'Szigligeti utca 10.';

  $response = $client->sendSignal();

  use UtanvetEllenor/Client;

  $client = new Client('publicApiKey', 'privateApiKey');
  $client->email = '[email protected]';
  $client->threshold = 0.8;
  $client->sandbox = true;

  $response = $client->sendRequest();

composer