moveodev/flightstats-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

moveodev/flightstats-api

最新稳定版本:0.5.5

Composer 安装命令:

composer require moveodev/flightstats-api

包简介

PHP client for the FlightStats API

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads composer.lock available

PHP client for the FlightStats API.

Installation

Use Composer to install this package:

composer require moveodev/flightstats-api 

Usage

Create a new moveodev\FlightStatsApi\FlexClient and use that to make requests to the FlightStats API:

$client = new moveodev\FlightStatsApi\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:

Flight Status API

Flight Status API documentation

getFlightStatusById

Get the flight status from a flight associated with provided Flight ID.

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

getFlightStatusByArrivalDate

Get the flight status from a flight that's arriving on the given date.

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

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

Airport Status API

Airport Status API documentation

getAirportStatusByArrivalDate

Get the airport status from a flight that's arriving on the given date and hour of day.

$client->airportStatus()->getAirportStatusByArrivalDate('ALA', new DateTime('2018-10-24'), (new DateTime())->format('H'), [ // Optional query parameters 'carrier' => 'KC', 'numHours' => 3, 'maxFlights' => 5, 'utc' => false, 'extendedOptions' => [ 'includeDeltas', ], ]);

getAirportStatusByDepartureDate

Get the airport status from a flight that's departing on the given date and hour of day.

$client->airportStatus()->getAirportStatusByDepartureDate('ALA', new DateTime('2018-10-24'), (new DateTime())->format('H'), [ // Optional query parameters 'carrier' => 'KC', 'numHours' => 3, 'maxFlights' => 5, 'utc' => false, 'extendedOptions' => [ 'includeDeltas', ], ]);

Schedules API

Schedules API documentation

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.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固