loadpartner/fmcsa-safer-api
最新稳定版本:v1.0.0
Composer 安装命令:
composer require loadpartner/fmcsa-safer-api
包简介
PHP library to help interface with the FMCSA SAFER API
README 文档
README
A package to help interface with the Federal
Concepts
There are two kinds of reports returned by this library.
One is a "full report", which includes all the possible queries from the API for a given carrier.
The other is a "partial report", which will include only some basic information.
searchCarrierName returns partial reports, you should call the getFullReport with the DOT number to obtain the full version.
You can check if a report is full or not by the full-report property on the returned objects.
Usage
You will need to obtain a key from the FMCSA, you can do that here
use LoadPartner\FmcsaSaferApi\FmcsaSafer; $apiKey = "xxxxx"; //your fmcsa safer API key $svc = new FmcsaSafer($apiKey); $svc->searchCarrierName('Trucks'); //returns a list of partial reports for matching carriers // or search by exact DOT $svc->getFullReport('1'); // returns the full report for a carrier based on DOT
统计信息
- 总下载量: 1.11k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-21