changed install instructions to only use composer

This commit is contained in:
malle-pietje
2025-01-03 13:39:16 +01:00
parent f34cbd675b
commit f343d3ccc4

View File

@@ -79,11 +79,6 @@ When upgrading from a version before **2.0.0**, please:
## Installation
Use [Composer](#composer) or [Git](#git) to install the API client class.
### Composer
The preferred installation method is through [Composer](https://getcomposer.org).
Follow these [installation instructions](https://getcomposer.org/doc/00-intro.md) if you don't have Composer
installed already.
@@ -113,23 +108,6 @@ Finally, be sure to include the composer autoloader in your code if your framewo
require_once 'vendor/autoload.php';
```
### Git
Execute the following `git` command from the shell in your project directory:
```sh
git clone https://github.com/Art-of-WiFi/UniFi-API-client.git
```
When git is done cloning, include the file containing the class like so in your code:
```php
/**
* load the class directly instead of using the composer autoloader
*/
require_once 'path/to/src/Client.php';
```
## Example usage
A basic example of how to use the class: