<commit_before># FlightStats

PHP client for the FlightStats API.

## Installation

Use Composer to install this package:

```
composer.phar install willemo/flightstats
```

## Usage

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

```php
$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')
);

$json = $response->getBody();

$data = json_decode($json, true);
```

## Available APIs

The following FlightStats APIs are currently available:<commit_msg>Updated the readme to reflect the changes in the response<commit_after># FlightStats

PHP client for the FlightStats API.

## Installation

Use Composer to install this package:

```
composer.phar install willemo/flightstats
```

## Usage

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

```php
$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:
{'fraction_non_alphanumeric': 0.11914600550964187, 'fraction_numerical': 0.02066115702479339, 'mean_word_length': 4.588461538461538, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2781548', 'n_tokens_mistral': 489, 'n_tokens_neox': 446, 'n_words': 143}