Vatsimphp collects and parses the publically available statistics from the VATSIM.net network. It provides iterators for the available data and basic search/filtering capabilities without using a database backend.
It also uses an intelligent local file cache to avoid consuming unnecessary bandwidth from the public data servers. The software comes with sensible default settings, but can be changed if required. Vatsimphp can be dropped into your crontab very easily to avoid inline data updates in your web application.
Vatsimphp also supports local-file-only mode if another process is already responsible to retrieve the raw data files from the VATSIM network or if live connections are not applicable.
Vatsimphp can be easily plugged into existing PHP systems to query VATSIM data or feed the parsed results into a database backend of your choice.
For almost all use cases the only class to use is VatsimData(). This is an example how to retrieve all South West Airlines (SWA) pilots:
<?php use Vatsimphp\VatsimData; $vatsim = new VatsimData(); $vatsim->loadData(); $swaPilots = $vatsim->searchCallsign('SWA');
For more information and examples see the
- From PHP 5.3 and above
- PHPUnit 3.7 or higher for test suite execution
Bugs and feature requests
Bugs and feature request can be filed on the issues page.
Contributions are welcome in respect of the PSR-2 coding style and unit test coverage.
CHANGELOG.md file for more details.
Vatsimphp is licensed under the Apache License, Version 2.0. Check the
NOTICE file for details.
VATSIM (Virtual Air Traffic Simulation Network) is a non-profit organisation. The development of this software is not directly affiliated to the VATSIM organisation and provided on an "as is" basis as set forward in the above License. This software does not connect to the VATSIM network directly, but rather consumes publically available resources produced by the VATSIM network.
More information on VATSIM can be found at http://www.vatsim.net.