2017 © Pedro Peláez
 

library flightaware-php-client

A curl-based API client for FlightAware's FlightXML v2 API

image

iansltx/flightaware-php-client

A curl-based API client for FlightAware's FlightXML v2 API

  • Saturday, July 29, 2017
  • by iansltx
  • Repository
  • 2 Watchers
  • 1 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 2 Versions
  • 63 % Grown

The README.md

flightaware-php-client

This class allows for quick interaction with a (small) subset of FlightAware's FlightXML REST API. See http://flightaware.com/commercial/flightxml/explorer/ for more information., (*1)

Requirements

  1. PHP 5.5+
  2. curl
  3. A FlightAware API account

Installation

You can install this library via Composer:, (*2)

composer require iansltx/flightaware-php-client

Or download the repo and require FlightAwareClient.php., (*3)

Usage

First, instantiate the client class as follows:, (*4)

$faClient = new iansltx\FlightAwareClient\Client('username', 'api_key');

The following methods are available; all return unwrapped result arrays:, (*5)

$inFlightInfo = $faClient->inFlightInfo($ident); // reformats waypoints with distinct latitude and longitude array keys
$flightInfoEx = $faClient->flightInfoEx($ident, $how_many, $offset);
$flightId = $faClient->getFlightId($ident, $departure_time);
$historicalTrack = $faClient->getHistoricalTrack($flight_id);
$lastTrack = $faClient->getLastTrack($ident);
$endpoint = $faClient->registerAlertEndpoint($url,$format);
$getAlertResults = $faClient->getAlerts()
$newAlertID = $faClient->setAlert($alert_id, $ident, $origin, $destination, $aircrafttype, $date_start, $date_end, $channels, $enablede, $max_weekly);
$foo = $faClient->deleteAlert($alert_id);

Contributing

Contributions/PRs are welcomed. This code is MIT licensed., (*6)

Other Notes

This library was originally built for use in http://limitless-horizons.org., (*7)

The Versions

29/07 2017

dev-master

9999999-dev https://github.com/iansltx/flightaware-php-client

A curl-based API client for FlightAware's FlightXML v2 API

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • ext-curl *

 

10/07 2017

v0.2

0.2.0.0 https://github.com/iansltx/flightaware-php-client

A curl-based API client for FlightAware's FlightXML v2 API

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • ext-curl *