webappid/laravel-airport

Laravel airport package

Installs: 91

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 2

Open Issues: 1

pkg:composer/webappid/laravel-airport

2.1.4 2020-04-04 09:06 UTC

README

the data from this package based on https://openflights.org/data.html#airport

how to install:

  1. install via composer composer require webappid/laravel-airport
  2. seeding the data webappid:airport:seed

example get airport by country :

<?php
use WebAppId\Airport\Services\AirportService

class ExampleAirport{
   public function getAirPort(AirportService $airportService, Container $container){
      $result = $container->call([$airportService, 'getAllAirportByCountry'], ['countryCode' => '[country_code]']);
   }
}