2017 © Pedro Peláez
 

library laravel-flightstats

Laravel service provider for the FlightStats API.

image

willemo/laravel-flightstats

Laravel service provider for the FlightStats API.

  • Thursday, August 31, 2017
  • by willemo
  • Repository
  • 1 Watchers
  • 1 Stars
  • 39 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 44 % Grown

The README.md

Laravel FlightStats

Laravel service provider for the FlightStats API., (*1)

This project is abandoned

This project is no longer supported., (*2)

Installation

Install the package using Composer:, (*3)

composer.phar require willemo/laravel-flightstats

Then add the service provider and facade (optional) to your config/app.php file:, (*4)

return [

    // Other config

    'providers' => [
        // Other providers
        Willemo\LaravelFlightStats\FlexServiceProvider::class,
    ],

    'aliases' => [
        // Other aliases
        'FlexClient' => Willemo\LaravelFlightStats\FlexFacade::class,
    ],

];

After this you'll have to run the command below to publish the config file:, (*5)

php artisan vendor:publish --provider="Willemo\LaravelFlightStats\FlexServiceProvider"

Configuration

You can use the config/flightstats.php file to configure the FlexClient, but you can also store the application ID and key into your env variables. The latter is recommended., (*6)

FLIGHTSTATS_APP_ID=yourAppID
FLIGHTSTATS_APP_KEY=yourAppKey

Usage

You can use the facade to get the FlexClient and make requests to the FlightStats API:, (*7)

$response = FlexClient::schedules()->getFlightByDepartureDate('AA', 100, Carbon\Carbon::parse('2017-09-05'), [
    // Optional query parameters
    'extendedOptions' => [
        'includeDeltas',
    ],
]);

$data = json_decode($response->getBody(), true);

Note

Copyright of the name FlightStats and its API belong to FlightStats., (*8)

The Versions

31/08 2017

dev-master

9999999-dev

Laravel service provider for the FlightStats API.

  Sources   Download

MIT

The Requires

 

by Willem Oostendorp

31/08 2017

v0.0.5

0.0.5.0

Laravel service provider for the FlightStats API.

  Sources   Download

MIT

The Requires

 

by Willem Oostendorp

30/08 2017

v0.0.4

0.0.4.0

Laravel service provider for the FlightStats API.

  Sources   Download

MIT

The Requires

 

by Willem Oostendorp

25/08 2017

v0.0.3

0.0.3.0

Laravel service provider for the FlightStats API.

  Sources   Download

MIT

The Requires

 

by Willem Oostendorp

25/08 2017

v0.0.2

0.0.2.0

Laravel service provider for the FlightStats API.

  Sources   Download

MIT

The Requires

 

by Willem Oostendorp

24/08 2017

v0.0.1

0.0.1.0

Laravel service provider for the FlightStats API.

  Sources   Download

MIT

The Requires

 

by Willem Oostendorp