PHPackages                             truckersmp/api-client - 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. truckersmp/api-client

ActiveLibrary[API Development](/categories/api)

truckersmp/api-client
=====================

TruckersMP API Library helps connecting to and using the TruckersMP API.

v2.3.1(1y ago)3590915[1 issues](https://github.com/TruckersMP/API-Client/issues)MITPHPPHP ^7.4|^8.0CI passing

Since Apr 10Pushed 1mo ago5 watchersCompare

[ Source](https://github.com/TruckersMP/API-Client)[ Packagist](https://packagist.org/packages/truckersmp/api-client)[ Docs](https://truckersmp.com/)[ RSS](/packages/truckersmp-api-client/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (7)Versions (21)Used By (0)

[![](https://camo.githubusercontent.com/f035ab16f6dea109d39958a4b65847c74bf387e990b309005cb19c712b3ac11d/68747470733a2f2f747275636b6572736d702e636f6d2f6173736574732f696d672f747275636b6572736d702d6c6f676f2d736d2e706e67)](https://camo.githubusercontent.com/f035ab16f6dea109d39958a4b65847c74bf387e990b309005cb19c712b3ac11d/68747470733a2f2f747275636b6572736d702e636f6d2f6173736574732f696d672f747275636b6572736d702d6c6f676f2d736d2e706e67)

[![Build Status](https://github.com/truckersmp/api-client/workflows/Run%20Tests/badge.svg)](https://github.com/truckersmp/api-client/workflows/Run%20Tests/badge.svg)[![StyleCI Status](https://camo.githubusercontent.com/ff58f115fce10eb14c85d84febbc50e1ffb8563b70a22f3eb514e14832a426bd/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f35373332343136342f736869656c643f7374796c653d666c6174266272616e63683d6d6173746572)](https://github.styleci.io/repos/57324164)[![Total Downloads](https://camo.githubusercontent.com/44eeafbfb4128dc64f5def538cf9b4e867bed150958c1d46918c3ecebdeb1edd/68747470733a2f2f706f7365722e707567782e6f72672f747275636b6572736d702f6170692d636c69656e742f646f776e6c6f616473)](https://packagist.org/packages/truckersmp/api-client)[![Latest Stable Version](https://camo.githubusercontent.com/d0d2b38fcbb727a4e9914445af315e652672ddef2bd42cac5d1905f6cb1a42ca/68747470733a2f2f706f7365722e707567782e6f72672f747275636b6572736d702f6170692d636c69656e742f762f737461626c65)](https://packagist.org/packages/truckersmp/api-client)[![Latest Unstable Version](https://camo.githubusercontent.com/bd53facca553d500e984ea189addb1a739c0dda1dc55efd896fe541bae56f368/68747470733a2f2f706f7365722e707567782e6f72672f747275636b6572736d702f6170692d636c69656e742f762f756e737461626c65)](https://packagist.org/packages/truckersmp/api-client)[![License](https://camo.githubusercontent.com/1f010a0d1f524e46b4c0c44fe756b41f7b87010ab9949fafca88fe726ab885db/68747470733a2f2f706f7365722e707567782e6f72672f747275636b6572736d702f6170692d636c69656e742f6c6963656e7365)](https://packagist.org/packages/truckersmp/api-client)

Introduction
------------

[](#introduction)

The TruckersMP PHP library provides convenient access to the TruckersMP API for applications written in the PHP language. It includes a pre-defined set of classes for each API endpoint to get the data as a collection or model.

If you want to use the API without the library, check out the [API Documentation](https://truckersmp.com/developers/api).

Requirements
------------

[](#requirements)

- PHP 7.4 or later
- Composer

Composer
--------

[](#composer)

You can install the package via [Composer](https://getcomposer.org). Run the following command:

```
composer require truckersmp/api-client
```

To use the package, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

```
require_once('vendor/autoload.php');
```

Official Documentation
----------------------

[](#official-documentation)

Documentation for API client can be found on the [Wiki](https://github.com/TruckersMP/API-Client/wiki).

Support
-------

[](#support)

If you have any questions about the library, you can create a topic on our [forum](https://forum.truckersmp.com/index.php?/forum/198-developer-portal/).

License
-------

[](#license)

This package is open-source and is licensed under the [MIT license](LICENSE.md).

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance70

Regular maintenance activity

Popularity29

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 50.2% 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 ~154 days

Recently: every ~194 days

Total

20

Last Release

389d ago

Major Versions

v0.3 → v1.0.02019-12-24

v1.2.0 → v2.0.02022-03-05

PHP version history (3 changes)v0.1PHP &gt;=5.6.0

v1.0.0PHP ^7.2

v2.0.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/256c1e7b43efdb02fe18ed581c80e3853e8256ab87dd01ebbe46710dae8f53d3?d=identicon)[Krashnz](/maintainers/Krashnz)

![](https://www.gravatar.com/avatar/7b96224c23b56382702e09751fe16a381c48f21384700b827d7272cacc1c488c?d=identicon)[j-m](/maintainers/j-m)

![](https://www.gravatar.com/avatar/71710754e0b036339b726720a418bd2c283550c25f954d3a3d8c9280fbcf4a2e?d=identicon)[ShawnCZek](/maintainers/ShawnCZek)

---

Top Contributors

[![bensherred](https://avatars.githubusercontent.com/u/22666637?v=4)](https://github.com/bensherred "bensherred (126 commits)")[![ShawnCZek](https://avatars.githubusercontent.com/u/15310717?v=4)](https://github.com/ShawnCZek "ShawnCZek (40 commits)")[![B3none](https://avatars.githubusercontent.com/u/24966460?v=4)](https://github.com/B3none "B3none (32 commits)")[![aidabeorn](https://avatars.githubusercontent.com/u/219796?v=4)](https://github.com/aidabeorn "aidabeorn (17 commits)")[![ThorErik](https://avatars.githubusercontent.com/u/201340201?v=4)](https://github.com/ThorErik "ThorErik (11 commits)")[![iDiegoNL](https://avatars.githubusercontent.com/u/10339564?v=4)](https://github.com/iDiegoNL "iDiegoNL (9 commits)")[![cjmaxik](https://avatars.githubusercontent.com/u/1501705?v=4)](https://github.com/cjmaxik "cjmaxik (8 commits)")[![HumaneWolf](https://avatars.githubusercontent.com/u/3963754?v=4)](https://github.com/HumaneWolf "HumaneWolf (5 commits)")[![unoriginaltom](https://avatars.githubusercontent.com/u/39840065?v=4)](https://github.com/unoriginaltom "unoriginaltom (1 commits)")[![coolio85](https://avatars.githubusercontent.com/u/30569245?v=4)](https://github.com/coolio85 "coolio85 (1 commits)")[![Ahhj93](https://avatars.githubusercontent.com/u/69793084?v=4)](https://github.com/Ahhj93 "Ahhj93 (1 commits)")

---

Tags

api-clientphptruckersmp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/truckersmp-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/truckersmp-api-client/health.svg)](https://phpackages.com/packages/truckersmp-api-client)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[ashallendesign/laravel-exchange-rates

A wrapper package for interacting with the exchangeratesapi.io API.

485677.8k](/packages/ashallendesign-laravel-exchange-rates)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1221.1k](/packages/codebar-ag-laravel-docuware)[spinen/laravel-clickup

SPINEN's Laravel Package for ClickUp.

282.2k](/packages/spinen-laravel-clickup)

PHPackages © 2026

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