Skip to content

Repository files navigation

IATA SSIM schedules parser

Latest Version on Packagist Tests Total Downloads

This package allows the developers working with airline companies to extract the flight schedule directly off the Standard Schedules Information (SSIM) from IATA.

Requirements

  • PHP 8.2 or higher

Installation

You can install the package via composer:

composer require ezzaze/ssim-parser

Usage

use 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"
    ]
*/

Testing

composer test

Static Analysis

composer analyse

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

A simple PHP package to parse Standard Schedules Information (SSIM) to extract airline companies flight schedule

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages