You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can access the MTA Web Interface from almost any programming language that can request web pages. PHP can do this very easily.
3
5
4
6
This SDK provides one function call that will allow you to call any exported script functions on any server that you have access to.
@@ -11,6 +13,12 @@ See the [official wiki page](https://wiki.multitheftauto.com/wiki/PHP_SDK) for f
11
13
12
14
This SDK requires PHP 7.1 or greater.
13
15
16
+
### HTTPlug client abstraction
17
+
18
+
As this SDK uses HTTPlug, you will have to require some libraries for get it working. See ["HTTPlug for library users"](http://docs.php-http.org/en/latest/httplug/users.html) for more info.
19
+
20
+
:warning:**Note**: If you don't follow this requirement before require the SDK, composer will throw you an error.
21
+
14
22
### Setup
15
23
16
24
The only supported installation method is via [Composer](https://getcomposer.org). Run the following command to require this SDK in your project:
@@ -19,10 +27,6 @@ The only supported installation method is via [Composer](https://getcomposer.org
19
27
composer require multitheftauto/mtasa-php-sdk
20
28
```
21
29
22
-
### HTTPlug client abstraction
23
-
24
-
As this SDK uses HTTPlug, you will have to require some libraries for get it working. See ["HTTPlug for library users"](http://docs.php-http.org/en/latest/httplug/users.html) for more info.
25
-
26
30
## A simple example
27
31
28
32
There are three ways to call an MTA server's exported functions, as shown in the following example:
0 commit comments