pravodev / hotel-api-sdk-php
WebBeds Hotel-API SDK for PHP
1.1.1
2021-06-11 00:40 UTC
Requires
- php: >= 7.2
- laminas/laminas-config: ^3.3
- laminas/laminas-http: ^2.1
- laminas/laminas-json: ^3.1
- nicmart/string-template: v0.1.0
Requires (Dev)
- php: >= 7.2
- imsop/simplexml_debug: ^1.0
- phpunit/phpunit: 7.1
README
WebBeds的PHP SDK
- 将Zend依赖更改为Laminas
- 添加对php >= 7.2的支持
- 添加餐饮端点
此库的结构源自hotelbeds,但API方案和API调用完全重新编写以供WebBeds使用(也称为FIT RUUMS)。
此存储库从以下分支而来
https://github.com/HamiltonWang/webbeds-sdk-php
官方文档
API URL
搜索操作:http://search.fitruums.com/1/PostGet/NonStaticXMLAPI.asmx
预订操作:http://book.fitruums.com/1/PostGet/Booking.asmx
例如:http://search.fitruums.com/1/PostGet/NonStaticXMLAPI.asmx?op=GetLanguages
安装
使用Composer实用工具从控制台安装:https://getcomposer.org/download/
composer require webbeds/hotel-api-sdk-php
使用SDK
阅读测试文件夹以获取完整示例