p0n0marev / ispmanager6
ispmanager php api.
v0.3
2024-03-11 16:47 UTC
Requires
- php: ^8.0
Requires (Dev)
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2025-03-11 19:25:59 UTC
README
Users and presets management.
Installation
composer require p0n0marev/ispmanager6
General API Usage
use P0n0marev\Ispmanager6\Client; // Token authentication $client = new Client([ 'host' => 'localhost', 'username' => 'admin', 'password' => 'secret' ]); $client->authenticate(); // Users $users = $client->users()->list(); print '<pre>'; print_r($users); print '</pre>'; // Create User $userEntity = new UserEntity([ 'name' => 'ponomarev', 'fullname' => 'Sergei Ponomarev', 'passwd' => 'secret', 'confirm' => 'secret', ]); $rs = $client->users()->create($userEntity); var_dump($rs); // Presets $presets = $client->presets()->list(); var_dump($presets);