The PHP connector for the Evalanche SOAP API simplifies the implementation of the API interface and offers a standardized set of methods.
Installation
The current version of the PHP connector can be downloaded from the official GitHub repository. Make sure that you install the connector as described in the README.
Application
First establish a connection with the available access data.
require 'vendor/autoload.php';
$connection = \Scn\EvalancheSoapApiConnector\EvalancheConnection::create(
'given host',
'given username',
'given password'
);
Then create the client of your choice, e.g. FormClient.
$statistic = $connection->createFormClient()->getStatistics(123, false);
Working with the results
$statistic->getImpressions()
Some methods require/return "structs" that are defined and describedin the struct repository