Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Commit

Permalink
feat: Added autoload code in section installation
Browse files Browse the repository at this point in the history
  • Loading branch information
joserick authored Apr 15, 2019
1 parent b190b3a commit 6b749e0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,21 @@ composer require joserick/php-plex
```
## Documentation
You can see more function of PHP-Plex in [Github Wiki](https://github.com/joserick/php-plex/wiki).

Also you can see all the classes, methods and properties in the [Documentation](http://docs.joserick.com/php-plex/index.html).
## Getting a PlexServer Instance

```php
// include composer autoload
require 'vendor/autoload.php';

// import the Joserick Plex
use Joserick\Plex\Plex;

// build plex object with you account data.
$plex = new Plex('username', 'password', 'address');

// to finally create server instances
$server = $plex->getServer();
```
If you want add multiples servers with data more specifics.
Expand Down

0 comments on commit 6b749e0

Please sign in to comment.