paulhollmann/vatsim-data
Composer 安装命令:
composer require paulhollmann/vatsim-data
包简介
VATSIM data parser
README 文档
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
paulhollmann/vatsim-data 适用场景与选型建议
paulhollmann/vatsim-data 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 293 次下载、GitHub Stars 达 1, 最近一次更新时间为 2024 年 07 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 paulhollmann/vatsim-data 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 paulhollmann/vatsim-data 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 293
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2024-07-25