PHPackages                             willemo/flightstats - 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. willemo/flightstats

AbandonedArchivedLibrary[API Development](/categories/api)

willemo/flightstats
===================

PHP client for the FlightStats API

v0.2.7(8y ago)33324[1 issues](https://github.com/willemo/flightstats/issues)[1 PRs](https://github.com/willemo/flightstats/pulls)1MITPHPPHP &gt;=5.5

Since Aug 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/willemo/flightstats)[ Packagist](https://packagist.org/packages/willemo/flightstats)[ RSS](/packages/willemo-flightstats/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (2)Versions (12)Used By (1)

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

[](#flightstats)

PHP client for the FlightStats API.

This project is abandoned
-------------------------

[](#this-project-is-abandoned)

This project is no longer supported.

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

[](#installation)

Use Composer to install this package:

```
composer.phar install willemo/flightstats

```

Usage
-----

[](#usage)

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

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

[](#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',
    ],
]);
```

### 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

Maintenance13

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~1 days

Total

11

Last Release

3180d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/df73215bdbc4610d19a0902fc99fe865c1f58b88feedd81bf480a6b42b4741ea?d=identicon)[willemo](/maintainers/willemo)

---

Top Contributors

[![willemo](https://avatars.githubusercontent.com/u/177329?v=4)](https://github.com/willemo "willemo (2 commits)")

### Embed Badge

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

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

###  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)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[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)
