An open API service indexing awesome lists of open source software.

https://github.com/mhndev/saman-travel

Saman Insurance Travel Php Api Client
https://github.com/mhndev/saman-travel

api-client insurance insurance-agent saman

Last synced: 3 months ago
JSON representation

Saman Insurance Travel Php Api Client

Awesome Lists containing this project

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

```php
$azki_travisa = new SamanTravelSoapClient('****', '****');
```

Getting List Of Countries



```php
$countries = $azki_travisa->getCountries();
```

Here is a sample output of getCountries
```php
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
)
)
)
)
```