New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

aharen/flight-mv

Velaanaa International Airport arrivals/departures from fis.com.mv
2,767 3
Install
composer require aharen/flight-mv
Latest Version:v1.1.5
PHP:^8.0.2
Laravel:9
License:MIT
Last Updated:Jun 22, 2022
Links: GitHub  ·  Packagist
Maintainer: aharen

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.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

651,963,193 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

518,004,183 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

435,097,283 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

407,699,310 4,663

Version History

Version Released PHP Laravel License
v1.1.5 ^8.0.2 ^9.8 MIT
v1.1.4 ^8.0.2 ^9.8 MIT
v1.1.3 ^8.0.2 ^9.8 MIT
v1.1.2 ^8.0.2 ^9.8 MIT
v1.1.1 ^8.0.2 ^9.8 MIT