paulhollmann / vatsim-data
VATSIM data parser
Requires
- php: ^8.3
- ext-curl: *
- illuminate/cache: ^v11|^v12
- illuminate/collections: ^v11|^v12
- illuminate/config: ^v11|^v12
- illuminate/support: ^v11|^v12
Requires (Dev)
- laravel/pint: ^1.18
This package is auto-updated.
Last update: 2025-06-29 23:21:32 UTC
README
This Laravel library allows to easily query VATSIM's data feed, METAR information, and status data. It provides a simple and efficient way to access real-time data for virtual air traffic simulation, making it ideal for aviation enthusiasts, developers of flight simulation tools, or anyone interested in utilizing VATSIM's data.
Installation
To install the package, you can use Composer by running the following command in your Laravel project's root directory:
composer require paulhollmann/vatsim-data
Configuration
This package requires configuration to access VATSIM's data. Open the configuration file located at config/vatsimdata.php
and update the settings as needed.
Usage
Fetch VATSIM Data Feed
To fetch the latest VATSIM data feed, use the VatsimData
facade:
use VatsimData\Datafeed; // Retrieve all online pilots $pilots = Datafeed::getPilots(); // Retrieve all online controllers $controllers = Datafeed::getControllers(); // ...
Fetch METAR Data
To fetch the latest METAR data for a specific airport:
use VatsimData\Metar; $metars = Metar::get('eddf'); // Replace 'eddf' with any ICAO code
Fetch Transceiver Data
To fetch the latest transceiver data for a specific controller:
use VatsimData\TransceiverData; $owner = TransceiverData::Owner('eddf_n_app'); $transceivers = $owner->transceivers;
Caching
The library supports caching of responses to reduce the number of requests to the VATSIM servers.
Contributing
Contributions are welcome! If you'd like to contribute to this library, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Implement your changes and add tests as necessary.
- Submit a pull request detailing your changes.
License
This project is licensed under the GNU GPLv3 License. See the LICENSE file for more information.
Contact
For any questions or issues, please contact me paul.hollmann@vatger.de