PHPackages                             loadpartner/fmcsa-safer-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. loadpartner/fmcsa-safer-api

ActiveLibrary[API Development](/categories/api)

loadpartner/fmcsa-safer-api
===========================

PHP library to help interface with the FMCSA SAFER API

v1.0.0(1y ago)61.2k↓50%MITPHP

Since Feb 21Pushed 1y ago2 watchersCompare

[ Source](https://github.com/loadpartner/fmcsa-safer-api-php)[ Packagist](https://packagist.org/packages/loadpartner/fmcsa-safer-api)[ RSS](/packages/loadpartner-fmcsa-safer-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

FMCSA SAFER API
===============

[](#fmcsa-safer-api)

A package to help interface with the Federal

Concepts
========

[](#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
=====

[](#usage)

You will need to obtain a key from the FMCSA, [you can do that here](https://mobile.fmcsa.dot.gov/QCDevsite/)

```
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
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance44

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

442d ago

Major Versions

v0.1.1 → v1.0.02025-02-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/571288bf305d3f72afc94b9e95737974f632653b3988e1a7047c9dc37cd35bb5?d=identicon)[garrett\_makes](/maintainers/garrett_makes)

---

Top Contributors

[![adrenallen](https://avatars.githubusercontent.com/u/9594539?v=4)](https://github.com/adrenallen "adrenallen (3 commits)")

---

Tags

composerfmcsafreightlogisticsphpsafer

### Embed Badge

![Health badge](/badges/loadpartner-fmcsa-safer-api/health.svg)

```
[![Health](https://phpackages.com/badges/loadpartner-fmcsa-safer-api/health.svg)](https://phpackages.com/packages/loadpartner-fmcsa-safer-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
