mghddev/dayapi

library for Day insurance

1.0.2 2019-12-02 06:57 UTC

This package is not auto-updated.

Last update: 2024-10-01 06:51:59 UTC


README

Day Insurance PHP API Client

This library has an object that it uses for sending soap request to day apis. This is DaySoapClient class and it is needed to inject wsdl url and username and password for constructing of its object. You can find usage of this library down here,

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

require __DIR__.'/vendor/autoload.php';

$wsdl = "Wsdl_url";
$UserName = 'UserName';
$password = '*****';

$day_client = new \DayApi\DaySoapClient($wsdl, $UserName, $password);

####1) Method getPrice:

$get_price_object = new \DayApi\GetPriceDataObject();
$get_price_object->setAge(25);
$get_price_object->setDuration(10);
$get_price_object->setZoneId(107);

$prices = $day_client->getPrice($get_price_object);

####2) Method Issue: