Skip to content

v3.0.0

Latest

Choose a tag to compare

@chindit chindit released this 29 Aug 13:50

Changelog — v3.0.0

Added

  • Added the Account class for Plex authentication.
  • Added automatic discovery of Plex servers accessible to the account.
  • Added support for multiple Plex servers.
  • Added support for server-specific access tokens.
  • Added automatic connection selection with fallback to the next available connection.
  • Added Connector::ping() to check server availability.
  • Added direct connections to a known Plex server using its URL and port.
  • Added support for music libraries.
  • Added getTracksForAlbum() for retrieving album tracks.
  • Added InvalidAccountException.
  • Added UnreachableServerException.

Breaking Changes

The main API now uses the Account class:

use Chindit\PlexApi\Account;

$account = new Account('MyPlexToken');
$plexServer = $account->getServer();

When multiple servers are available, provide the server identifier:

$servers = $account->getServerList();
$plexServer = $account->getServer($servers->first()->identifier);

Direct instantiation of PlexServer with a host and token is no longer the recommended API.