Skip to content

Velaanaa International Airport arrivals/departures from fis.com.mv

Notifications You must be signed in to change notification settings

aharen/flight-mv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flight MV

Velaanaa International Airport arrivals/departures from fis.com.mv

Installation

composer require aharen/flight-mv

Usage

Fetch Arrivals

use aharen\FlightMv\Flight;
use aharen\FlightMv\ApiClient\ApiClient;

$flight = new Flight(
    new ApiClient()
);

$flight->arrivals()->get();

Fetch Departures

use aharen\FlightMv\Flight;

$flight = new Flight(
    new ApiClient()
);

$flight->departures()->get();

Methods

updated() Last updated time

use aharen\FlightMv\Flight;

$flight = new Flight(
    new ApiClient()
);

$flight->departures()->updated();

get() returns an instance of Knapsack Collection

use aharen\FlightMv\Flight;

$flight = new Flight(
    new ApiClient()
);

$flight->departures()->get();

toArray() return an array of the data

use aharen\FlightMv\Flight;

$flight = new Flight(
    new ApiClient()
);

$flight->departures()->toArray();

where($field, $value) Filters the data

use aharen\FlightMv\Flight;

$flight = new Flight(
    new ApiClient()
);

$flight->departures()->where('AirLineID', 'Q2');

You can also chain where() methods to further filter your results. Example: get all Q2 (Maldivian) but only International Flights

use aharen\FlightMv\Flight;

$flight = new Flight(
    new ApiClient()
);

$flight->departures()->where('AirLineID', 'Q2')
    ->where('CarrierType', 'I');

You will need to call either toArray() or get() to get the filtered results.

About

Velaanaa International Airport arrivals/departures from fis.com.mv

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages