Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
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://stats.truckersmp.com/api).
If you want to use the API without the library, check out the [API Documentation](https://truckersmp.com/developers/api).

## Requirements

Expand Down
22 changes: 11 additions & 11 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(array $config = [])
/**
* Get the information for the player with the specified ID.
*
* https://stats.truckersmp.com/api#players_lookup
* https://truckersmp.com/developers/api#operation/get-player-id
*
* @param int $id
* @return PlayerRequest
Expand All @@ -49,7 +49,7 @@ public function player(int $id): PlayerRequest
/**
* Get the bans for the player with the specified ID.
*
* https://stats.truckersmp.com/api#ban_lookup
* https://truckersmp.com/developers/api#operation/get-bans-id
*
* @param int $id
* @return BanRequest
Expand All @@ -62,7 +62,7 @@ public function bans(int $id): BanRequest
/**
* Get the information about the servers.
*
* https://stats.truckersmp.com/api#servers_list
* https://truckersmp.com/developers/api#operation/get-servers
*
* @return ServerRequest
*/
Expand All @@ -74,7 +74,7 @@ public function servers(): ServerRequest
/**
* Get the current game time.
*
* https://stats.truckersmp.com/api#game_time
* https://truckersmp.com/developers/api#operation/get-game_time
*
* @return GameTimeRequest
*/
Expand All @@ -86,7 +86,7 @@ public function gameTime(): GameTimeRequest
/**
* Get the recent and featured companies.
*
* https://stats.truckersmp.com/api#vtc_index
* https://truckersmp.com/developers/api#operation/get-vtc
*
* @return CompanyIndexRequest
*/
Expand All @@ -98,7 +98,7 @@ public function companies(): CompanyIndexRequest
/**
* Get the information for the company with the specified ID or slug.
*
* https://stats.truckersmp.com/api#vtc_info
* https://truckersmp.com/developers/api#operation/get-vtc-id
*
* @param string|int $key
* @return CompanyRequest
Expand All @@ -111,7 +111,7 @@ public function company(string $key): CompanyRequest
/**
* Get the TruckersMP version for ETS2 and ATS.
*
* https://stats.truckersmp.com/api#truckersmp_version
* https://truckersmp.com/developers/api#operation/get-version
*
* @return VersionRequest
*/
Expand All @@ -123,7 +123,7 @@ public function version(): VersionRequest
/**
* Get the current in-game rules.
*
* https://stats.truckersmp.com/api#truckersmp_rules
* https://truckersmp.com/developers/api#operation/get-rules
*
* @return RuleRequest
*/
Expand All @@ -133,9 +133,9 @@ public function rules(): RuleRequest
}

/**
* Get the featured, today's and upcoming events.
* Get the featured, current, and upcoming events.
*
* https://stats.truckersmp.com/api#events_index
* https://truckersmp.com/developers/api#operation/get-v2-events
*
* @return EventIndexRequest
*/
Expand All @@ -147,7 +147,7 @@ public function events(): EventIndexRequest
/**
* Get the information for the event with the specified ID.
*
* https://stats.truckersmp.com/api#events_info
* https://truckersmp.com/developers/api#operation/get-events-id
*
* @param int $id
* @return EventRequest
Expand Down