mhndev/saman-travel

library for saman travel insurance api (travisa)

2.0.2 2019-11-16 09:05 UTC

This package is auto-updated.

Last update: 2024-11-16 20:14:29 UTC


README

What is travisa php package

This package has been designed to use travisa travel insurance easy and fast;

How to use ...

Creating a new instance of object
 $azki_travisa = new SamanTravelSoapClient('****', '****');

Getting List Of Countries

 $countries = $azki_travisa->getCountries();

Here is a sample output of getCountries

stdClass Object
    (
        [getCountriesResult] => stdClass Object
        (
            [TISCountryInfo] => Array
            (
                [0] => stdClass Object
                (
                    [errorCode] => -1
                    [errorText] =>
                    [code] => 2
                    [title] => ‏آلمان‏
                    [zoneCode] => -1
                    [standardCode] => DE
                )
                [1] => stdClass Object
                (
                    [errorCode] => -1
                    [errorText] =>
                    [code] => 3
                    [title] => ‏انگلستان‏
                    [zoneCode] => -1
                    [standardCode] => UK
                )
                [2] => stdClass Object
                (
                    [errorCode] => -1
                    [errorText] =>
                    [code] => 4
                    [title] => ‏ايتاليا‏
                    [zoneCode] => -1
                    [standardCode] => IT
                )
            )
        )
    )