PHP code example of wazaari / kasapi-php
1. Go to this page and download the library: Download wazaari/kasapi-php 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/ */
wazaari / kasapi-php example snippets
"wazaari/kasapi-php": "dev-master"
namespace KasApi;
foreach (glob("src/KasApi/*.php") as $filename) {
a1");
$kasApi = new KasApi($kasConfiguration);
try {
$kasData = $kasApi->get_domains(); // any API function as described above
var_dump($kasData); // $kasData is a plain old PHP array
} catch(KasApiException $e) {
echo $e->getMessage(); // show message on SOAP error
}