PHP code example of krakerag / experian-qas

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

    

krakerag / experian-qas example snippets



use \krakerag\ExperianQas\PostcodeSearch\PostcodeSearch;
use \krakerag\ExperianQas\PostcodeSearch\Engine;

$wsdl = 'http://yourserver:2021/proweb.wsdl';

$engine = new Engine();
$search = new PostcodeSearch(new \Psr\Log\NullLogger(), $wsdl); // Or a proper logger in place
$search->setEngine($engine);

$results = $search->find('GBR','SW40QB');

var_dump($results); // etc



$engine = new Engine;
$engine->setEngine('Keyfinder');
$engine->setIntensity('Close');
// etc