lartie/airports

Airports for Laravel
22 3
Install
composer require lartie/airports
Latest Version:v1.2
PHP:>=5.5.9
License:MIT
Last Updated:Jul 28, 2016
Links: GitHub  ·  Packagist
Maintainer: lartie

Airports for Laravel 5

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock

Install

composer require lartie/airports
'providers' => [
  ...
  LArtie\Airports\AirportsServiceProvider::class,
]
php artisan vendor:publish

php artisan migrate

php artisan airports:install

Usage

$country = Country::where('name_en', 'Russia')->first();

$city = $country->cities()->first();
$city->name_en;
$city->name_ru;

$country = $city->country()->first();
$country->name_en;
$country->name_ru;
$country->iso_code;

$airport = $city->airports()->first();
$airport->gmt_offset;
$airport->iata_code;
$airport->icao_code;

$city = $airport->city()->first();

License

MIT

Related Packages

ijeffro/laravel-airports

Laravel Airports is a bundle for Laravel, providing Iata Code ISO 3166 3 and cou...

3,433 4
php-tmdb/laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the...

53,303 162
laravel-ja/laravel

The Laravel Framework.

5,667 17
kavenegar/laravel

laravel 4 and 5 kavenegar integration

350,771 85
reliese/laravel

Reliese Components for Laravel Framework code generation.

3,759,523 1,709