janpun/flight-iata-code

航班iata代码解析

dev-main 2022-11-08 04:04 UTC

This package is auto-updated.

Last update: 2024-05-08 08:01:35 UTC


README

.

Installing

$ composer require janpun/flight-iata-code -vvv

Usage

Airline Decode

use Janpun\FlightIataCode\Airline;

$airline = new Airline();
$response = $airline->getNationalInfo('CA');

Airport Decode

use Janpun\FlightIataCode\Airport;

$airport = new Airport();
$response = $airport->getNationalInfo('PEK');

Contributing

You can contribute in one of three ways:

  1. File bug reports using the issue tracker.
  2. Answer questions or fix bugs on the issue tracker.
  3. Contribute new features or update the wiki.

The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.

License

MIT