PHP object-oriented library for Plesk API-RPC.
Composer is a preferable way to install the library:
composer require plesk/api-php-lib:@dev
One the possible ways to become familiar with the library is to check the unit tests.
To run the unit tests use the following command:
REMOTE_HOST=your-plesk-host.dom REMOTE_PASSWORD=password phpunit
To use custom port one can provide a URL (e.g. for Docker container):
REMOTE_URL=https://your-plesk-host.dom:port REMOTE_PASSWORD=password phpunit
- Install Node.js
- Install dependencies via
npm installcommand - Run
REMOTE_HOST=your-plesk-host.dom REMOTE_PASSWORD=password grunt watch:test
