nabeel/vacentral

2.1.0 2022-02-24 20:10 UTC

README

Build Status Total Downloads Latest Stable Version Latest Unstable Version

The interface to vaCentral, used in phpVMS, and can be used in your own custom system.

installation

Installation is easiest using composer. Autoloading should take care of the rest.

composer require nabeel/vacentral

usage

use VaCentral\VaCentral;

$client = new VaCentral();
$client->setApiKey('YOUR API KEY');

# Look up an airport, returns an instance of \Vacentral\Models\Airport
$airport = $client->getAirport('KJFK');

echo $airport->icao; // Will write out KJFK