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.
- PHP 7.4 or later
- Composer
You can install the package via Composer. Run the following command:
composer require truckersmp/api-client
To use the package, use Composer's autoload:
require_once('vendor/autoload.php');
Documentation for API client can be found on the Wiki.
If you have any questions about the library, you can create a topic on our forum.
This package is open-source and is licensed under the MIT license.