PHP code example of jc21 / plex-api
1. Go to this page and download the library: Download jc21/plex-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jc21 / plex-api example snippets
use jc21\PlexApi;
$client = new PlexApi('192.168.0.10');
$client->setAuth('username', 'password');
$result = $client->getOnDeck();
print_r($result);
bash
# Install Composer
curl -sS https://getcomposer.org/installer | php