changed install instructions to only use composer
This commit is contained in:
22
README.md
22
README.md
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user