truckersmp / api-client
TruckersMP API Library helps connecting to and using the TruckersMP API.
Installs: 646
Dependents: 0
Suggesters: 0
Security: 0
Stars: 29
Watchers: 7
Forks: 15
Open Issues: 1
Requires
- php: ^7.4|^8.0
- ext-json: *
- guzzlehttp/guzzle: ^7.3
- illuminate/collections: ^8.0|^9.0|^10.0|^11.0
- nesbot/carbon: ^2.16
Requires (Dev)
- mockery/mockery: ^1.5
- phpfastcache/phpfastcache: ^8.0
- phpunit/phpunit: ^9.3
- squizlabs/php_codesniffer: ^3.5
README
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.
Requirements
- PHP 7.4 or later
- Composer
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');
Official Documentation
Documentation for API client can be found on the Wiki.
Support
If you have any questions about the library, you can create a topic on our forum.
License
This package is open-source and is licensed under the MIT license.