PHP code example of nabeel / vacentral

1. Go to this page and download the library: Download nabeel/vacentral library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nabeel / vacentral example snippets


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