PHP code example of twidpay / utils
1. Go to this page and download the library: Download twidpay/utils 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/ */
twidpay / utils example snippets
use Utils\PiiData\CustomerDataDTO;
$data = [
'id' => 1,
'mobileNumber' => '1234567890',
'firstname' => 'John',
'middlename' => 'Doe',
'lastname' => 'Smith',
'email' => '[email protected]',
'dob' => '1990-01-01',
'hashedMobileNumber' => 'hash123'
];
$customer = new CustomerDataDTO($data);