Posts posted by Ratcho
-
-
-
v1.0.4 has been released which fixes loading guzzlehttp/guzzle if the initial project does not use it.
-
-
The TruckersMP PHP library provides a convenient way to access the TruckersMP API from 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.
You can find the source code on GitHub and view the package on Packagist.
Installation
For installation instructions, please refer to the Installation & Usage page of the Wiki.
Documentation
You can find the documentation by visiting the Wiki on GitHub.
Example
Below is an example of how you can get the name of a player using the client.
<?php require_once('vendor/autoload.php'); $client = new TruckersMP\APIClient\Client(); $player = $client->player(28159)->get(); echo 'The players name is ' . $player->getName();
For those of you who currenly use the API Client, a new major version was released today (24th December 2019).
- 2
- 1
-
Another couple of suggestions.
Libraries
- https://inertiajs.com/ - a way to build single-page apps, without building an API.
Training
- https://laracasts.com/ - expert screencasts on Laravel, Vue, and so much more.
- 1
-
If you’ve never heard of it or never used it, why not also check out Trucky Events, a new home for multiplayer events and convoys.
-
Template Suggestion:
Tailwind CSS - https://tailwindcss.com. A utility-first CSS framework for rapidly building custom designs.
- 3
-
Thank you for the quick notice.
It's good to see that TruckersMP take security seriously and inform there users of issues as soon as they are informed, even if they aren't directly linked with their services but could effect users within the community
- 1
-
Nice work, this will make a huge difference
-
Good job, thank you
-
Great job and thank you.
-
Once again an amazing job thank you and keep up the good work!
-
You could try using the the SCS SDK, not sure if it will provide you with all the information you need, but it's probably best to use it rather than accessing the memory to retrieve the data. More information can be found here:
-
Thank you.
-
If you are talking about advertising your VTC under the companies topic on the forum. Yes, you will need a working website. Steam isn't allowed. You can find out more information and requirements here:
-
18 minutes ago, Samiz [FIN] said:
Maybe shirt with MP logo in front and ETS2/ATS logo/s on back or vice versa, or just only TruckersMP logo I would buy at least shirt or/and hoodie.
Although it would be nice, they would have to be careful with the ETS and ATS logo. I have been in contact with the CEO of SCS Software before regarding the logo on merchandise and they didn't allow it. Might be different as it's a bigger but would be worth checking first
But overall I think it's a good idea.
-
Can't wait, should be good fun
-
As @Bomlife showed above. Using date() will allow you to return the time, you could also then return other values such as the year, day, date etc via the same function by changing the values to return in the first parameter of date().
A list of parameters can be found here:
-
Yes that's correct.
-
@fabrice to access the ETS2Map API. You need to visit http://tracker.ets2map.com/doko/{id} you can then view information about the user, in your case you will be able to detect if the user is online or offline. If you are offline the API should return this:
-
Looks like a challenge good luck everyone
-
Good job, once again! Keep up the good work.
-
What an amazing milestone, congrats guys and thank you for everything you've done.
-
Once again another great job! Thank you
TruckersMP API Client for PHP
in Developer Portal
Posted
v1.1.1 has been released (2020-06-20)
Added
Changed
v1.2.0 has been releasd (2020-07-18)
Added
Changed