PHPackages                             necrorde/api-php-lib - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. necrorde/api-php-lib

ActiveLibrary[API Development](/categories/api)

necrorde/api-php-lib
====================

PHP object-oriented library for Plesk XML-RPC API

v1.0.8(4y ago)0306Apache-2.0PHP

Since Jun 13Pushed 4y agoCompare

[ Source](https://github.com/NecrorDE/api-php-lib)[ Packagist](https://packagist.org/packages/necrorde/api-php-lib)[ RSS](/packages/necrorde-api-php-lib/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (1)Versions (11)Used By (0)

PHP library for Plesk XML-RPC API
---------------------------------

[](#php-library-for-plesk-xml-rpc-api)

[![Build Status](https://camo.githubusercontent.com/04d4a897024c029a8800f9098e3beb204659db7ef163b7fe0212eab090d7424b/68747470733a2f2f7472617669732d63692e636f6d2f706c65736b2f6170692d7068702d6c69622e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/plesk/api-php-lib) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/51705b0e715ea5dc0fd7db6a0cbae456d297478b51ed51e92cd19d1236a4e925/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706c65736b2f6170692d7068702d6c69622f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/plesk/api-php-lib/?branch=master)

PHP object-oriented library for Plesk XML-RPC API.

Install Via Composer
--------------------

[](#install-via-composer)

[Composer](https://getcomposer.org/) is a preferable way to install the library:

`composer require plesk/api-php-lib`

Usage Examples
--------------

[](#usage-examples)

Here is an example on how to use the library and create a customer with desired properties:

```
$client = new \PleskX\Api\Client($host);
$client->setCredentials($login, $password);

$client->customer()->create([
    'cname' => 'Plesk',
    'pname' => 'John Smith',
    'login' => 'john',
    'passwd' => 'secret',
    'email' => 'john@smith.com',
]);
```

It is possible to use a secret key instead of password for authentication.

```
$client = new \PleskX\Api\Client($host);
$client->setSecretKey($secretKey)
```

In case of Plesk extension creation one can use an internal mechanism to access XML-RPC API. It does not require to pass authentication because the extension works in the context of Plesk.

```
$client = new \PleskX\Api\InternalClient();
$protocols = $client->server()->getProtos();
```

For additional examples see tests/ directory.

How to Run Unit Tests
---------------------

[](#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 ./vendor/bin/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 ./vendor/bin/phpunit`

One more way to run tests is to use Docker:

`docker-compose run tests`

Using Grunt for Continuous Testing
----------------------------------

[](#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`

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 78.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~166 days

Recently: every ~276 days

Total

9

Last Release

1564d ago

PHP version history (4 changes)v1.0.0PHP ^5.6|^7.1

v1.0.1PHP ^5.6|^7.1|^7.0

v1.0.2PHP ^5.6 | ^7.0

v1.0.3PHP ^5.6 || ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/85f9b223f42f2cc19336b0bc9d39da1dd7a45bea97c34ed00a9e1b1f43d0392b?d=identicon)[NecrorDE](/maintainers/NecrorDE)

---

Top Contributors

[![sibprogrammer](https://avatars.githubusercontent.com/u/187856?v=4)](https://github.com/sibprogrammer "sibprogrammer (143 commits)")[![mrsombre](https://avatars.githubusercontent.com/u/376535?v=4)](https://github.com/mrsombre "mrsombre (12 commits)")[![xgin](https://avatars.githubusercontent.com/u/5378093?v=4)](https://github.com/xgin "xgin (9 commits)")[![NecrorDE](https://avatars.githubusercontent.com/u/17518279?v=4)](https://github.com/NecrorDE "NecrorDE (4 commits)")[![vbaranovskiy-plesk](https://avatars.githubusercontent.com/u/19778578?v=4)](https://github.com/vbaranovskiy-plesk "vbaranovskiy-plesk (4 commits)")[![abashurov](https://avatars.githubusercontent.com/u/45628798?v=4)](https://github.com/abashurov "abashurov (2 commits)")[![laurisb](https://avatars.githubusercontent.com/u/2082155?v=4)](https://github.com/laurisb "laurisb (2 commits)")[![sergei-milke](https://avatars.githubusercontent.com/u/24819987?v=4)](https://github.com/sergei-milke "sergei-milke (1 commits)")[![rybalov](https://avatars.githubusercontent.com/u/9481760?v=4)](https://github.com/rybalov "rybalov (1 commits)")[![transkontrol](https://avatars.githubusercontent.com/u/20657481?v=4)](https://github.com/transkontrol "transkontrol (1 commits)")[![ghermans](https://avatars.githubusercontent.com/u/1594411?v=4)](https://github.com/ghermans "ghermans (1 commits)")[![vlikhtanskiy](https://avatars.githubusercontent.com/u/13726356?v=4)](https://github.com/vlikhtanskiy "vlikhtanskiy (1 commits)")[![baldhead](https://avatars.githubusercontent.com/u/2817151?v=4)](https://github.com/baldhead "baldhead (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/necrorde-api-php-lib/health.svg)

```
[![Health](https://phpackages.com/badges/necrorde-api-php-lib/health.svg)](https://phpackages.com/packages/necrorde-api-php-lib)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
