2017 © Pedro Peláez
 

library flightstats

PHP client for the FlightStats API

image

willemo/flightstats

PHP client for the FlightStats API

  • Friday, September 1, 2017
  • by willemo
  • Repository
  • 1 Watchers
  • 2 Stars
  • 82 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 2 Open issues
  • 12 Versions
  • 22 % Grown

The README.md

FlightStats

PHP client for the FlightStats API., (*1)

This project is abandoned

This project is no longer supported., (*2)

Installation

Use Composer to install this package:, (*3)

composer.phar install willemo/flightstats

Usage

Create a new Willemo\FlightStats\FlexClient and use that to make requests to the FlightStats API:, (*4)

$client = new Willemo\FlightStats\FlexClient([
    'appId' => 'yourAppId',
    'appKey' => 'yourAppKey',
]);

// Get information about flight AA100 departing on September 5th:
$response = $client->schedules()->getFlightByDepartureDate(
    'AA',
    100
    new DateTime('2017-09-05')
);

Available APIs

The following FlightStats APIs are currently available:, (*5)

Flight Status API

Flight Status API documentation, (*6)

getFlightStatusById

Get the flight status from a flight associated with provided Flight ID., (*7)

$client->flightStatus()->getFlightStatusById(123456, [
    // Optional query parameters
    'extendedOptions' => [
        'includeDeltas',
    ],
]);

getFlightStatusByArrivalDate

Get the flight status from a flight that's arriving on the given date., (*8)

$client->flightStatus()->getFlightStatusByArrivalDate('AA', 100, new DateTime('2017-09-05'), [
    // Optional query parameters
    'utc' => true,
    'extendedOptions' => [
        'includeDeltas',
    ],
]);

getFlightStatusByDepartureDate

Get the flight status from a flight that's departing on the given date., (*9)

$client->flightStatus()->getFlightStatusByDepartureDate('AA', 100, new DateTime('2017-09-05'), [
    // Optional query parameters
    'utc' => true,
    'extendedOptions' => [
        'includeDeltas',
    ],
]);

Schedules API

Schedules API documentation, (*10)

getFlightByArrivalDate

$client->schedules()->getFlightByArrivalDate('AA', 100, new DateTime('2017-09-05'), [
    // Optional query parameters
    'extendedOptions' => [
        'includeDeltas',
    ],
]);

getFlightByDepartureDate

$client->schedules()->getFlightByDepartureDate('AA', 100, new DateTime('2017-09-05'), [
    // Optional query parameters
    'extendedOptions' => [
        'includeDeltas',
    ],
]);

Note

Copyright of the name FlightStats and its API belong to FlightStats., (*11)

The Versions

01/09 2017

dev-master

9999999-dev

PHP client for the FlightStats API

  Sources   Download

MIT

The Requires

 

by Willem Oostendorp

01/09 2017

v0.2.7

0.2.7.0

PHP client for the FlightStats API

  Sources   Download

MIT

The Requires

 

by Willem Oostendorp

01/09 2017

0.2.6

0.2.6.0

PHP client for the FlightStats API

  Sources   Download

MIT

The Requires

 

by Willem Oostendorp

31/08 2017

v0.2.5

0.2.5.0

PHP client for the FlightStats API

  Sources   Download

MIT

The Requires

 

by Willem Oostendorp

31/08 2017

v0.2.4

0.2.4.0

PHP client for the FlightStats API

  Sources   Download

MIT

The Requires

 

by Willem Oostendorp

31/08 2017

v0.2.3

0.2.3.0

PHP client for the FlightStats API

  Sources   Download

MIT

The Requires

 

by Willem Oostendorp

30/08 2017

v0.2.2

0.2.2.0

PHP client for the FlightStats API

  Sources   Download

MIT

The Requires

 

by Willem Oostendorp

25/08 2017

v0.2.1

0.2.1.0

PHP client for the FlightStats API

  Sources   Download

MIT

The Requires

 

by Willem Oostendorp

25/08 2017

v0.2.0

0.2.0.0

PHP client for the FlightStats API

  Sources   Download

MIT

The Requires

 

by Willem Oostendorp

24/08 2017

v0.1.0

0.1.0.0

PHP client for the FlightStats API

  Sources   Download

MIT

The Requires

 

by Willem Oostendorp

24/08 2017

v0.0.2

0.0.2.0

PHP client for the FlightStats API

  Sources   Download

MIT

The Requires

 

by Willem Oostendorp

24/08 2017

v0.0.1

0.0.1.0

PHP client for the FlightStats API

  Sources   Download

MIT

The Requires

 

by Willem Oostendorp