Skip to content

Commit b98655d

Browse files
committed
docs: move httpplug requirement to be before setup
1 parent 636777b commit b98655d

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# MTA:SA PHP SDK [![Build Status](https://dev.azure.com/multitheftauto/mtasa-php-sdk/_apis/build/status/multitheftauto.mtasa-php-sdk?branchName=master)](https://dev.azure.com/multitheftauto/mtasa-php-sdk/_build/latest?definitionId=1&branchName=master)
1+
# MTA:SA PHP SDK
2+
[![Build Status](https://dev.azure.com/multitheftauto/mtasa-php-sdk/_apis/build/status/multitheftauto.mtasa-php-sdk?branchName=master)](https://dev.azure.com/multitheftauto/mtasa-php-sdk/_build/latest?definitionId=1&branchName=master)
3+
24
You can access the MTA Web Interface from almost any programming language that can request web pages. PHP can do this very easily.
35

46
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
1113

1214
This SDK requires PHP 7.1 or greater.
1315

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+
1422
### Setup
1523

1624
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
1927
composer require multitheftauto/mtasa-php-sdk
2028
```
2129

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-
2630
## A simple example
2731

2832
There are three ways to call an MTA server's exported functions, as shown in the following example:

0 commit comments

Comments
 (0)