Implementation of the Synology Diskstation SDK in PHP
Currently only supports authentication.
- Login
- Logout
- Authentication
- Get system user id
- Get system user group names and ids
- PHP 5.3
$core = new \ultimo\sdk\synology\ds\Core();
// get details of the user currently logged in to DSM
$username = $core->authenticate();
$userId = $core->getUserId($username);
$groups = $core->getUserGroupIds($username);
// log in as admin
if ($core->login("AdMiN", "secret")) {
echo "Now logged in as " . $core->authenticate();
}
More information can be found in the following blog post.