2017 © Pedro Peláez
 

library subsonic-api-client

image

philwc/subsonic-api-client

  • Tuesday, January 2, 2018
  • by philwc
  • Repository
  • 1 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

subsonic-api-client

PHP Client For Subsonic

Usage

Create a new configuration object:, (*1)

// Assumes the config items are in the environment (via dotenv etc.)
$config = new \philwc\Configuration(getenv('SUBSONIC_URL'), getenv('SUBSONIC_USER'), getenv('SUBSONIC_PASSWORD'))

Either set the config into the ClientFactory:, (*2)

\philwc\ClientFactory::setConfiguration($config);

Or pass into each ClientFactory::get() call:, (*3)

$createPlaylist = \philwc\ClientFactory::get(\philwc\Call\Playlist\CreatePlaylist::class, $config);

To make the call, invoke the class:, (*4)

$createPlaylist(['name' => 'Test Playlist', 'songId' => 1]);

Each call class can receive different parameters and will return a different result., (*5)

Use getAvailableFields(), getRequiredFields(), getResponseClass() as appropriate., (*6)

Currently, the following calls are implemented:, (*7)

Playlist

  • CreatePlaylist
  • DeletePlaylist
  • GetPlaylist
  • GetPlaylists
  • UpdatePlaylist

Searching

  • Search2

System

  • GetLicense
  • Ping

The Versions

02/01 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by Phil Wright-Christie

22/12 2017

v0.0.4

0.0.4.0

  Sources   Download

MIT

The Requires

 

by Phil Wright-Christie

22/12 2017

v0.0.3

0.0.3.0

  Sources   Download

MIT

The Requires

 

by Phil Wright-Christie

22/12 2017

v0.0.2

0.0.2.0

  Sources   Download

MIT

The Requires

 

by Phil Wright-Christie

22/12 2017

v0.0.1

0.0.1.0

  Sources   Download

The Requires

 

by Phil Wright-Christie