Docs / SDKs / PHP
PHP SDK
teo/sdk for PHP 8.1+. Planned — not yet available.
Coming soon
This SDK is on the roadmap. For now, use the TypeScript SDK or call the REST API directly.
Search
$result = $client->flight->search([
'origin' => 'JFK',
'destination' => 'LHR',
'departureDate' => '2026-08-15',
'returnDate' => '2026-08-22',
'cabin' => 'business',
'travelers' => ['adults' => 1, 'children' => 0, 'infants' => 0],
'type' => 'both', // 'cash' | 'award' | 'both'
]);
foreach ($result->options as $opt) {
print $opt->id . ' ' . $opt->total_price . ' ' . $opt->award_price . ' ' . $opt->cabin . PHP_EOL;
}Other SDKs
TypeScript, Python, Go, Java, .NET.