webappid / laravel-airport
Laravel airport package
2.1.4
2020-04-04 09:06 UTC
Requires
- php: >=7.2.0
- doctrine/dbal: ^2.5
- illuminate/support: ^6.0|^7.0
- webappid/laravel-ddd: ^1.0@dev
Requires (Dev)
- mockery/mockery: ^1.0
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.0
- squizlabs/php_codesniffer: ^3.0
README
the data from this package based on https://openflights.org/data.html#airport
how to install:
- install via composer
composer require webappid/laravel-airport
- 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]']);
}
}