upgradelabs/laravel-avantio-api
最新稳定版本:1.0.0
Composer 安装命令:
composer require upgradelabs/laravel-avantio-api
包简介
Laravel package to interact with Avantio XML feeds and WebServices
README 文档
README
A Laravel package by Upgradelabs for interacting with the Avantio XML Feeds and WebServices API.
Requirements
- PHP ^8.3
- Laravel ^10.0
Installation
Require the package via Composer:
composer require upgradelabs/laravel-avantio-api
Publish the configuration file:
php artisan vendor:publish --provider="Upgradelabs\\Avantio\\AvantioServiceProvider" --tag="config"
Configure your .env with Avantio credentials:
AVANTIO_WSDL="https://ws.avantio.com/soap/vrmsConnectionServices.php?wsdl" AVANTIO_USERNAME=your_username AVANTIO_PASSWORD=your_password AVANTIO_LANGUAGE=EN
Usage
You can use the Avantio facade or inject the Upgradelabs\\Avantio\\Client class:
use Avantio; $result = Avantio::isAvailable([ 'Accommodation' => [ 'AccommodationCode' => 123, 'UserCode' => 456, 'LoginGA' => 'company_login' ], 'DateFrom' => '2025-06-01', 'DateTo' => '2025-06-10', 'Occupants' => [ 'AdultsNumber' => 2 ] ]);
Available Methods
isAvailable(array $criteria)getBookingPrice(array $criteria)setBooking(array $criteria)getBooking(array $criteria)cancelBooking(array $criteria)getBookingList(array $criteria)
Testing
Run the test suite with PHPUnit:
vendor/bin/phpunit
Publishing to Packagist
- Push your repository to GitHub.
- Submit the package on Packagist: https://packagist.org/packages/submit
License
MIT
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-28