PHPackages                             gvozdb/flightstats-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. gvozdb/flightstats-api

ActiveLibrary[API Development](/categories/api)

gvozdb/flightstats-api
======================

PHP client for the FlightStats API

0.4.0(7y ago)02721MITPHPPHP &gt;=7.1

Since Aug 24Pushed 7y ago1 watchersCompare

[ Source](https://github.com/gvozdb/FlightStats-API)[ Packagist](https://packagist.org/packages/gvozdb/flightstats-api)[ RSS](/packages/gvozdb-flightstats-api/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (3)Versions (15)Used By (0)

FlightStats
===========

[](#flightstats)

[![Latest Stable Version](https://camo.githubusercontent.com/587f3c84f5de3ef477b9474a46978cdc8298437b7d912fc4eefbfe6af74510f7/68747470733a2f2f706f7365722e707567782e6f72672f67766f7a64622f666c6967687473746174732d6170692f76657273696f6e)](https://packagist.org/packages/gvozdb/flightstats-api)[![Total Downloads](https://camo.githubusercontent.com/d22fc5655818d96a02fe41e91933c2482941a7c84e9c01177138936957d52d58/68747470733a2f2f706f7365722e707567782e6f72672f67766f7a64622f666c6967687473746174732d6170692f646f776e6c6f616473)](https://packagist.org/packages/gvozdb/flightstats-api)[![Latest Unstable Version](https://camo.githubusercontent.com/6a40b1c42b630b838eac9125cd8c4f89f8b5fedd0fa1a7bb158cd81b55e023e9/68747470733a2f2f706f7365722e707567782e6f72672f67766f7a64622f666c6967687473746174732d6170692f762f756e737461626c65)](//packagist.org/packages/gvozdb/flightstats-api)[![License](https://camo.githubusercontent.com/e119a715374af1344c320cdb211714661645d9aa274f4b56c04079b79d9eea08/68747470733a2f2f706f7365722e707567782e6f72672f67766f7a64622f666c6967687473746174732d6170692f6c6963656e7365)](https://packagist.org/packages/gvozdb/flightstats-api)[![Monthly Downloads](https://camo.githubusercontent.com/dd91f941f266fe5c88f285a2d5d2871a0142a10c3a78245fce4fcdba7f6d44e4/68747470733a2f2f706f7365722e707567782e6f72672f67766f7a64622f666c6967687473746174732d6170692f642f6d6f6e74686c79)](https://packagist.org/packages/gvozdb/flightstats-api)[![Daily Downloads](https://camo.githubusercontent.com/933ef34e6fa48e62f0381bbef449cbd1d75477a41644ef59edd690c640d02deb/68747470733a2f2f706f7365722e707567782e6f72672f67766f7a64622f666c6967687473746174732d6170692f642f6461696c79)](https://packagist.org/packages/gvozdb/flightstats-api)[![composer.lock available](https://camo.githubusercontent.com/cd8be564865a561a8023dc612916b3d391c641fa84e19604090306536da30a35/68747470733a2f2f706f7365722e707567782e6f72672f67766f7a64622f666c6967687473746174732d6170692f636f6d706f7365726c6f636b)](https://packagist.org/packages/gvozdb/flightstats-api)

PHP client for the FlightStats API.

Installation
------------

[](#installation)

Use Composer to install this package:

```
composer require gvozdb/flightstats-api

```

Usage
-----

[](#usage)

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

```
$client = new Gvozdb\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
--------------

[](#available-apis)

The following FlightStats APIs are currently available:

### Flight Status API

[](#flight-status-api)

[Flight Status API documentation](https://developer.flightstats.com/api-docs/flightstatus/v2/flight)

#### getFlightStatusById

[](#getflightstatusbyid)

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

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

#### getFlightStatusByArrivalDate

[](#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

[](#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)

[Airport Status API documentation](https://developer.flightstats.com/api-docs/flightstatus/v2/airport)

#### getAirportStatusByArrivalDate

[](#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

[](#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)

[Schedules API documentation](https://developer.flightstats.com/api-docs/scheduledFlights/v1)

#### getFlightByArrivalDate

[](#getflightbyarrivaldate)

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

#### getFlightByDepartureDate

[](#getflightbydeparturedate)

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

Note
----

[](#note)

Copyright of the name FlightStats and its API belong to FlightStats.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~33 days

Recently: every ~104 days

Total

14

Last Release

2760d ago

PHP version history (3 changes)v0.0.1PHP &gt;=5.5

0.3.0PHP &gt;=7.0

0.4.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/5dd40ab1c910272d5418d8b87b2deb8067dd51d68c5f0214f07f2b24b87f2554?d=identicon)[gvozdb](/maintainers/gvozdb)

---

Top Contributors

[![aaronflorey](https://avatars.githubusercontent.com/u/948073?v=4)](https://github.com/aaronflorey "aaronflorey (6 commits)")[![gvozdb](https://avatars.githubusercontent.com/u/6847636?v=4)](https://github.com/gvozdb "gvozdb (4 commits)")[![willemo](https://avatars.githubusercontent.com/u/177329?v=4)](https://github.com/willemo "willemo (1 commits)")

### Embed Badge

![Health badge](/badges/gvozdb-flightstats-api/health.svg)

```
[![Health](https://phpackages.com/badges/gvozdb-flightstats-api/health.svg)](https://phpackages.com/packages/gvozdb-flightstats-api)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[mvdnbrk/dhlparcel-php-api

DHL Parcel API client for PHP

3957.9k5](/packages/mvdnbrk-dhlparcel-php-api)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
