This package allows the developers working with airline companies to extract the flight schedule directly off the Standard Schedules Information (SSIM) from IATA.
- PHP 8.2 or higher
You can install the package via composer:
composer require ezzaze/ssim-parseruse Ezzaze\SsimParser\SsimParser;
// From a raw SSIM string
$parser = new SsimParser();
$schedule = $parser->load($ssimData)->parse();
// From a file
$schedule = (new SsimParser())->load('/path/to/schedule.ssim')->parse();Each flight in the returned array contains:
var_dump($schedule[0]);
/*
array:12 [
"uid" => "30330703070000501"
"airline_designator" => "ME"
"service_type" => "J"
"flight_number" => "501"
"departure_datetime" => "2022-07-03 07:00:00"
"arrival_datetime" => "2022-07-03 08:40:00"
"departure_utc_datetime" => "2022-07-03 03:00:00"
"arrival_utc_datetime" => "2022-07-03 06:40:00"
"departure_iata" => "EVN"
"arrival_iata" => "HRG"
"aircraft_type" => "320"
"aircraft_configuration" => "Y174"
]
*/composer testcomposer analysePlease see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.