Skip to content

Library in php for communication with kiwi.com API

License

Notifications You must be signed in to change notification settings

njanik/kiwicom-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Library in php for communication with kiwi.com API.

Install

composer require mafikes/kiwiapi

Example

Init Client

$client = new \Mafikes\KiwiApi\Client();

Locations query

$client->getLocations()->searchByQuery([
    'term' => 'PRG',
    'locale' => 'en-US',
    'location_types' => 'airport',
    'limit' => '10',
    'active_only' => 'true',
    'sort' => 'name'
]);

Get all airlines

$client->getAirlines()->getAll();

Get link logo of airline company

$client->getAirlines()->getImage('JQ'); // id airline

Get basic query for flights

$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.

Todo

  • search deeplink
  • check flights
  • save booking
  • confirm payment
  • webhooks

About

Library in php for communication with kiwi.com API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%