Library in php for communication with kiwi.com API.
composer require mafikes/kiwiapi
$client = new \Mafikes\KiwiApi\Client();
$client->getLocations()->searchByQuery([
'term' => 'PRG',
'locale' => 'en-US',
'location_types' => 'airport',
'limit' => '10',
'active_only' => 'true',
'sort' => 'name'
]);
$client->getAirlines()->getAll();
$client->getAirlines()->getImage('JQ'); // id airline
$client->getFlights()->searchByQuery([
'fly_from' => 'PRG',
'fly_to' => 'LGW',
'date_from' => '08/08/2019',
'date_to' => '08/09/2019',
'partners' => 'picky',
]);
More examples you can find in example folder.
- search deeplink
- check flights
- save booking
- confirm payment
- webhooks