https://github.com/sc-networks/evalanche-soap-api-connector
Official PHP client for Evalanche SOAP API
https://github.com/sc-networks/evalanche-soap-api-connector
api connector evalanche php soap
Last synced: about 1 year ago
JSON representation
Official PHP client for Evalanche SOAP API
- Host: GitHub
- URL: https://github.com/sc-networks/evalanche-soap-api-connector
- Owner: SC-Networks
- License: mit
- Created: 2018-08-07T08:53:41.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-26T06:56:52.000Z (about 2 years ago)
- Last Synced: 2024-04-26T07:44:58.348Z (about 2 years ago)
- Topics: api, connector, evalanche, php, soap
- Language: PHP
- Homepage: https://www.sc-networks.com
- Size: 621 KB
- Stars: 5
- Watchers: 8
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# EVALANCHE SOAP API CONNECTOR
[](https://packagist.org/packages/scn/evalanche-soap-api-connector)
[](LICENSE.md)

## Install
Via Composer
``` bash
$ composer require scn/evalanche-soap-api-connector
```
## PHP-Support
| Connector-Version/Branch | PHP-Version(s) |
|--------------------------|-------------------------|
| 1.x | 7.2, 7.3, 7.4, 8.0, 8.1 |
| master | 8.1, 8.2 |
## Usage
### General
First create a connection with the access credentials provided by SC-Networks.
```php
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);`
Work with the results
`$statistic->getImpressions()`
Most of the methods will require/return structs which are defined and
described in [the struct repository](https://github.com/SC-Networks/evalanche-soap-api-struct).
### Custom soapclient settings
`EvalancheConnection::create` allows to set [custom settings](https://www.php.net/manual/en/soapclient.construct.php)
for phps soap client. Please note that some options are predefined with meaningful values and cannot
be changed.
```php
$connection = \Scn\EvalancheSoapApiConnector\EvalancheConnection::create(
'given host',
'given username',
'given password',
false,
[
'keep_alive' => false,
]
);
```
## Method Documentation
Can be found [here](/docs/index.md). Detailled information about the calls can be found in the [API documentation](https://help.evalanche.cloud/hc/en-us/sections/360003694531-Standard-API-SOAP-).
## Testing
``` bash
$ composer test
```
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.