krakerag/experian-qas

Experian QAS library for Postcode search

Installs: 2 308

Dependents: 0

Watchers: 2

Forks: 1

Open Issues: 1

Language: PHP

v0.3 2014-11-18 02:50 UTC

README

Build Status

This library is designed to provide a class interface to the Experian QAS postcode search product.

It is built with the SOAP Pro Web product in mind and tested with GBR datasets primarily.

Experian QAS can be found via http://www.qas-experian.com.au/ or http://www.qas.co.uk/

Installation

Install via composer by installing this repo or via Packagist - https://packagist.org/packages/krakerag/experian-qas

Usage

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

The engine object ships with sensible settings for working with UK postcode searches.

You can tailor this in any fashion that matches varibles designed to work with the WSDL, for example:

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

About

Requirements

  • PHP 5.3 or higher
  • [optional] PHPUnit 3.5+ to execute the test suite (phpunit --version)

Submitting bugs and feature requests

Bugs and feature requests are tracked on GitHub

Author

Matthew Hallsworth - matthew.hallsworth@gmail.com

License

This is licensed under the MIT License - see the LICENSE.txt file for details