vatradar/vatsimclient
最新稳定版本:0.6.0
Composer 安装命令:
composer require vatradar/vatsimclient
包简介
VATSIM Data Retriever
README 文档
README
This module retrieves JSON data from VATSIM, does basic sanitization, and provides output in the form of a value object or raw JSON.
Quick Start
<?php require __DIR__.'/vendor/autoload.php'; use CuyZ\Valinor\MapperBuilder; use GuzzleHttp\Client as HttpClient; use VatRadar\DataObjects\Vatsim\VatsimData; use VatRadar\VatsimClient\DataFetcher; use VatRadar\VatsimClient\IterableSanitizer; use VatRadar\VatsimClient\Mapper; // Set up Dependencies $fetcher = new DataFetcher(new HttpClient(), 'https://status.vatsim.net/status.json'); $sanitizer = new IterableSanitizer(); $mapper = new Mapper(new MapperBuilder(), VatsimData::class); $client = new \VatRadar\VatsimClient\Client($fetcher, $sanitizer, $mapper); $vatsimDataObject = $client->retrieve();
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2022-09-04