PHP code example of nilfraud / php-library

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

    

nilfraud / php-library example snippets




ilfraud\API;
use Nilfraud\Helpers;

// Make API calls;
$client = new Client();
$client->setAuthCredentials('apiKey', 'apiToken');
$apiCall = $client->apiCall('GET', 'reports/hash');
$apiCall = $client->apiCall('POST', 'reports', ['param' => 'value']);
var_dump($apiCall);

// Generate hashes;
Hash::generate('[email protected]');
Hash::generateBulk(['[email protected]', '[email protected]']);



$client = new \Nilfraud\API\Client();

composer