PHP code example of upgradelabs / laravel-avantio-api

1. Go to this page and download the library: Download upgradelabs/laravel-avantio-api 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/ */

    

upgradelabs / laravel-avantio-api example snippets


use Avantio;

$result = Avantio::isAvailable([
    'Accommodation' => [
        'AccommodationCode' => 123,
        'UserCode' => 456,
        'LoginGA' => 'company_login'
    ],
    'DateFrom' => '2025-06-01',
    'DateTo' => '2025-06-10',
    'Occupants' => [
        'AdultsNumber' => 2
    ]
]);
bash
php artisan vendor:publish --provider="Upgradelabs\\Avantio\\AvantioServiceProvider" --tag="config"
ini
AVANTIO_WSDL="https://ws.avantio.com/soap/vrmsConnectionServices.php?wsdl"
AVANTIO_USERNAME=your_username
AVANTIO_PASSWORD=your_password
AVANTIO_LANGUAGE=EN