承接 iansltx/flightaware-php-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

iansltx/flightaware-php-client

最新稳定版本:v0.2

Composer 安装命令:

composer require iansltx/flightaware-php-client

包简介

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

README 文档

README

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.

Requirements

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

Installation

You can install this library via Composer:

composer require iansltx/flightaware-php-client

Or download the repo and require FlightAwareClient.php.

Usage

First, instantiate the client class as follows:

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

The following methods are available; all return unwrapped result arrays:

$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.

Other Notes

This library was originally built for use in http://limitless-horizons.org.

统计信息

  • 总下载量: 831
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-28