Go back to safety! ⛔

Hello, Stranger!

This php object will let you search and retrieve data for airports around the world. This class uses the 'Airport info' API as described on rapid API.


This is a very simple application for retrieving information such as IATA & ICAO codes as well as longtitude & latitude data for airports around the globe.

To use this

Example #1
London Heathrow Airport

$airport = new Airport();
$airport->populateAirport("LHR");
var_dump($airport);

Example #2
Athens International Airport

$airport = new Airport();
$airport->populateAirport("ATH");
var_dump($airport);

Example #3
Your airport

$airport = new Airport();
$airport->populateAirport(" ");
var_dump($airport);

View on GitHub