/api-php-lib

PHP library for Plesk API-RPC

Primary LanguagePHPOtherNOASSERTION

PHP library for Plesk API-RPC

Scrutinizer Code Quality

PHP object-oriented library for Plesk API-RPC.

Install Via Composer

Composer is a preferable way to install the library:

composer require plesk/api-php-lib:@dev

How to Run Unit Tests

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

Using Grunt for Continuous Testing

  • Install Node.js
  • Install dependencies via npm install command
  • Run REMOTE_HOST=your-plesk-host.dom REMOTE_PASSWORD=password grunt watch:test