fw4 / whise-webservices
PHP library for implementing WHISE Webservices
Installs: 1 828
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^7.1|^8.0
- guzzlehttp/guzzle: ~6.0|~7.0
- ocramius/package-versions: ^1.4|^2.1
Requires (Dev)
- phpunit/phpunit: ^8.4|^9.0
README
PHP client for the Whise webservices.
⚠️ The Whise webservices are deprecated and will be shut down September 2022. It's strongly recommended to use the Whise API instead.
Installation
composer require fw4/whise-webservices
Usage
$client = new \Whise\WebServices('12345'); $estates = $client->getEstateList([ 'CountryID' => 1 ]); foreach ($estates as $estate) var_dump($estate->id);
It's also possible to construct requests through objects:
$request = new \Whise\Request\GetEstateListRequest(); $request->countryID = 1; $request->zipList = [1000]; $client = new \Whise\WebServices('12345'); $estates = $client->getEstates($request); foreach ($estates as $estate) var_dump($estate->id);
Properties on both requests and responses are implemented case insensitively.
Pagination
When iterating over a response containing multiple objects, sequential pagination requests will automatically be sent in the background.
Due to unresolved bugs in the webservices, counting some responses might return an incorrect amount.