Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: plesk/api-php-lib
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.7
Choose a base ref
...
head repository: plesk/api-php-lib
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jan 9, 2021

  1. Copy the full SHA
    7626f9c View commit details
  2. Copy the full SHA
    b0eecee View commit details
  3. Fix doc style

    sibprogrammer committed Jan 9, 2021
    Copy the full SHA
    a1bbe18 View commit details
  4. Copy the full SHA
    e634b78 View commit details

Commits on Jan 10, 2021

  1. Copy the full SHA
    1e06f0c View commit details
  2. Update copyright year

    sibprogrammer committed Jan 10, 2021
    Copy the full SHA
    a484fc9 View commit details
  3. Add servicePlan create and delete

    Sander van der Vlugt authored and sibprogrammer committed Jan 10, 2021
    Copy the full SHA
    d2853a3 View commit details
  4. Fix doc block

    sibprogrammer committed Jan 10, 2021
    Copy the full SHA
    80b5aa9 View commit details
  5. Copy the full SHA
    f6c144d View commit details
  6. Fix StyleCI issues

    sibprogrammer committed Jan 10, 2021
    Copy the full SHA
    d631ec1 View commit details
  7. Copy the full SHA
    965dc51 View commit details
  8. Copy the full SHA
    9d3e0e7 View commit details
  9. Copy the full SHA
    d41c160 View commit details
  10. Copy the full SHA
    0af60ab View commit details

Commits on Jan 12, 2021

  1. Copy the full SHA
    7c79952 View commit details

Commits on Jan 17, 2021

  1. Copy the full SHA
    2188d01 View commit details
  2. Copy the full SHA
    a5e0adc View commit details

Commits on Jan 31, 2021

  1. Copy the full SHA
    92a2b6e View commit details
  2. Copy the full SHA
    caeb83c View commit details
  3. Copy the full SHA
    b07aa17 View commit details
  4. Copy the full SHA
    40990d5 View commit details

Commits on Feb 20, 2021

  1. Update SecretKey.php

    Make IP address optional. If not provided don't add the ip_address child to the request. This will make Plesk take the IP of the sender. ("If this node is not specified, the IP address of the request sender will be used.")
    simonsolutions authored Feb 20, 2021
    Copy the full SHA
    9be3148 View commit details

Commits on Feb 25, 2021

  1. Style fixes

    sibprogrammer committed Feb 25, 2021
    Copy the full SHA
    c9de9a6 View commit details
  2. Copy the full SHA
    3933ee1 View commit details

Commits on Feb 26, 2021

  1. Copy the full SHA
    f4aa65e View commit details

Commits on Mar 28, 2021

  1. Copy the full SHA
    859c16f View commit details

Commits on Jun 4, 2021

  1. Switch to new Plesk image for tests in docker.

    The new image contains real systemd and is required for Plesk >= 18.0.36.
    It already contains all components required by tests.
    vizovitin committed Jun 4, 2021
    Copy the full SHA
    e0bc21b View commit details
  2. Merge pull request #102 from vizovitin/new-plesk-image-with-real-systemd

    Switch to new Plesk image for tests in docker
    rybalov authored Jun 4, 2021
    Copy the full SHA
    87980e9 View commit details

Commits on Sep 13, 2021

  1. Copy the full SHA
    9d36db6 View commit details
  2. Copy the full SHA
    fd74ae2 View commit details

Commits on Sep 15, 2021

  1. Copy the full SHA
    8f4f9f4 View commit details
  2. Fix style issue

    sibprogrammer committed Sep 15, 2021
    Copy the full SHA
    b0aba30 View commit details
  3. Copy the full SHA
    f2df92b View commit details
  4. Copy the full SHA
    f881d91 View commit details
  5. Copy the full SHA
    ecd3f5c View commit details
  6. Copy the full SHA
    c8a200e View commit details

Commits on Sep 16, 2021

  1. Copy the full SHA
    ca9bbac View commit details
  2. Copy the full SHA
    9fb853c View commit details

Commits on Sep 17, 2021

  1. Copy the full SHA
    a665af5 View commit details

Commits on Oct 1, 2021

  1. Copy the full SHA
    a7e1c46 View commit details
  2. Copy the full SHA
    15837e8 View commit details
  3. Copy the full SHA
    0fdd640 View commit details
  4. Copy the full SHA
    8ad7345 View commit details

Commits on Oct 6, 2021

  1. BUGFIX EXTREST-137 simpleXml fix for & in values.

    viacheslav diomidov committed Oct 6, 2021
    Copy the full SHA
    21ecea0 View commit details
  2. Merge pull request #109 from plesk/bugfix-vdiomidov-simplexml-amprsan…

    …t-fix-ppp-54497
    
    BUGFIX EXTREST-137 simpleXml fix for & in values
    xgin authored Oct 6, 2021
    Copy the full SHA
    f226ce3 View commit details
  3. Copy the full SHA
    bdaad89 View commit details

Commits on Oct 7, 2021

  1. Fix StyleCI issues

    sibprogrammer committed Oct 7, 2021
    Copy the full SHA
    be8c4ab View commit details
  2. Copy the full SHA
    717cfd0 View commit details
  3. Copy the full SHA
    fe2cfd7 View commit details

Commits on Oct 13, 2021

  1. Copy the full SHA
    9d45052 View commit details
Showing with 5,498 additions and 2,660 deletions.
  1. +8 −0 .github/dependabot.yml
  2. +13 −0 .github/workflows/test.yml
  3. +2 −5 .gitignore
  4. +0 −6 .styleci.yml
  5. +0 −4 .travis.yml
  6. +4 −1 Dockerfile
  7. +1 −1 LICENSE
  8. +3 −2 README.md
  9. +16 −6 composer.json
  10. +2,457 −622 composer.lock
  11. +16 −4 docker-compose.yml
  12. +28 −0 phpcs.xml.dist
  13. +1 −0 phpunit-watcher.yml
  14. +21 −23 phpunit.xml.dist
  15. +23 −0 psalm.xml
  16. +23 −10 src/Api/{Struct.php → AbstractStruct.php}
  17. +220 −223 src/Api/Client.php
  18. +1 −1 src/Api/Client/Exception.php
  19. +1 −1 src/Api/Exception.php
  20. +4 −4 src/Api/InternalClient.php
  21. +35 −24 src/Api/Operator.php
  22. +1 −1 src/Api/Operator/Aps.php
  23. +68 −9 src/Api/Operator/Certificate.php
  24. +56 −17 src/Api/Operator/Customer.php
  25. +37 −57 src/Api/Operator/Database.php
  26. +35 −20 src/Api/Operator/DatabaseServer.php
  27. +42 −40 src/Api/Operator/Dns.php
  28. +28 −23 src/Api/Operator/DnsTemplate.php
  29. +7 −10 src/Api/Operator/EventLog.php
  30. +6 −6 src/Api/Operator/Ip.php
  31. +8 −6 src/Api/Operator/Locale.php
  32. +1 −1 src/Api/Operator/LogRotation.php
  33. +57 −22 src/Api/Operator/Mail.php
  34. +19 −16 src/Api/Operator/PhpHandler.php
  35. +36 −41 src/Api/Operator/ProtectedDirectory.php
  36. +19 −20 src/Api/Operator/Reseller.php
  37. +1 −1 src/Api/Operator/ResellerPlan.php
  38. +29 −32 src/Api/Operator/SecretKey.php
  39. +44 −74 src/Api/Operator/Server.php
  40. +33 −12 src/Api/Operator/ServicePlan.php
  41. +70 −1 src/Api/Operator/ServicePlanAddon.php
  42. +20 −9 src/Api/Operator/Session.php
  43. +29 −26 src/Api/Operator/Site.php
  44. +33 −23 src/Api/Operator/SiteAlias.php
  45. +20 −23 src/Api/Operator/Subdomain.php
  46. +11 −29 src/Api/Operator/Ui.php
  47. +2 −2 src/Api/Operator/VirtualDirectory.php
  48. +84 −31 src/Api/Operator/Webspace.php
  49. +27 −10 src/Api/Struct/Certificate/Info.php
  50. +25 −46 src/Api/Struct/Customer/GeneralInfo.php
  51. +8 −9 src/Api/Struct/Customer/Info.php
  52. +13 −22 src/Api/Struct/Database/Info.php
  53. +9 −12 src/Api/Struct/Database/UserInfo.php
  54. +10 −15 src/Api/Struct/DatabaseServer/Info.php
  55. +14 −25 src/Api/Struct/Dns/Info.php
  56. +14 −25 src/Api/Struct/EventLog/DetailedEvent.php
  57. +10 −15 src/Api/Struct/EventLog/Event.php
  58. +10 −15 src/Api/Struct/Ip/Info.php
  59. +9 −12 src/Api/Struct/Locale/Info.php
  60. +22 −0 src/Api/Struct/Mail/GeneralInfo.php
  61. +8 −9 src/Api/Struct/Mail/Info.php
  62. +16 −35 src/Api/Struct/PhpHandler/Info.php
  63. +7 −10 src/Api/Struct/ProtectedDirectory/DataInfo.php
  64. +6 −7 src/Api/Struct/ProtectedDirectory/Info.php
  65. +7 −6 src/Api/Struct/ProtectedDirectory/UserInfo.php
  66. +16 −19 src/Api/Struct/Reseller/GeneralInfo.php
  67. +8 −9 src/Api/Struct/Reseller/Info.php
  68. +10 −15 src/Api/Struct/SecretKey/Info.php
  69. +9 −12 src/Api/Struct/Server/Admin.php
  70. +9 −12 src/Api/Struct/Server/GeneralInfo.php
  71. +9 −12 src/Api/Struct/Server/Preferences.php
  72. +7 −6 src/Api/Struct/Server/SessionPreferences.php
  73. +33 −3 src/Api/Struct/Server/Statistics.php
  74. +22 −0 src/Api/Struct/Server/Statistics/DiskSpace.php
  75. +20 −0 src/Api/Struct/Server/Statistics/LoadAverage.php
  76. +28 −0 src/Api/Struct/Server/Statistics/Memory.php
  77. +26 −9 src/Api/Struct/Server/Statistics/Objects.php
  78. +22 −0 src/Api/Struct/Server/Statistics/Other.php
  79. +22 −0 src/Api/Struct/Server/Statistics/Swap.php
  80. +16 −9 src/Api/Struct/Server/Statistics/Version.php
  81. +8 −9 src/Api/Struct/Server/UpdatesInfo.php
  82. +10 −15 src/Api/Struct/ServicePlan/Info.php
  83. +24 −0 src/Api/Struct/ServicePlanAddon/Info.php
  84. +13 −22 src/Api/Struct/Session/Info.php
  85. +25 −18 src/Api/Struct/Site/GeneralInfo.php
  86. +14 −12 src/Api/Struct/Site/HostingInfo.php
  87. +8 −9 src/Api/Struct/Site/Info.php
  88. +9 −12 src/Api/Struct/SiteAlias/GeneralInfo.php
  89. +8 −9 src/Api/Struct/SiteAlias/Info.php
  90. +11 −16 src/Api/Struct/Subdomain/Info.php
  91. +27 −37 src/Api/Struct/Ui/CustomButton.php
  92. +18 −38 src/Api/Struct/Webspace/DiskUsage.php
  93. +33 −13 src/Api/Struct/Webspace/GeneralInfo.php
  94. +9 −12 src/Api/Struct/Webspace/HostingPropertyInfo.php
  95. +10 −9 src/Api/Struct/Webspace/Info.php
  96. +8 −9 src/Api/Struct/Webspace/Limit.php
  97. +7 −6 src/Api/Struct/Webspace/LimitDescriptor.php
  98. +9 −12 src/Api/Struct/Webspace/LimitInfo.php
  99. +9 −10 src/Api/Struct/Webspace/Limits.php
  100. +7 −6 src/Api/Struct/Webspace/PermissionDescriptor.php
  101. +9 −12 src/Api/Struct/Webspace/PermissionInfo.php
  102. +7 −6 src/Api/Struct/Webspace/PhpSettings.php
  103. +7 −6 src/Api/Struct/Webspace/PhysicalHostingDescriptor.php
  104. +8 −3 src/Api/XmlResponse.php
  105. +113 −0 tests/AbstractTestCase.php
  106. +27 −27 tests/ApiClientTest.php
  107. +84 −11 tests/CertificateTest.php
  108. +59 −17 tests/CustomerTest.php
  109. +12 −5 tests/DatabaseServerTest.php
  110. +76 −85 tests/DatabaseTest.php
  111. +18 −21 tests/DnsTemplateTest.php
  112. +25 −27 tests/DnsTest.php
  113. +5 −5 tests/EventLogTest.php
  114. +3 −3 tests/IpTest.php
  115. +4 −4 tests/LocaleTest.php
  116. +94 −15 tests/MailTest.php
  117. +7 −8 tests/PhpHandlerTest.php
  118. +29 −22 tests/ProtectedDirectoryTest.php
  119. +24 −17 tests/ResellerTest.php
  120. +48 −18 tests/SecretKeyTest.php
  121. +30 −16 tests/ServerTest.php
  122. +62 −0 tests/ServicePlanAddonTest.php
  123. +65 −7 tests/ServicePlanTest.php
  124. +15 −7 tests/SessionTest.php
  125. +70 −0 tests/SiteAliasTest.php
  126. +41 −26 tests/SiteTest.php
  127. +25 −32 tests/SubdomainTest.php
  128. +0 −73 tests/TestCase.php
  129. +11 −11 tests/UiTest.php
  130. +4 −4 tests/Utility/KeyLimitChecker.php
  131. +2 −2 tests/Utility/PasswordProvider.php
  132. +93 −27 tests/WebspaceTest.php
  133. +9 −1 wait-for-plesk.sh
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "TECH "
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: test

on: [push]

jobs:
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: docker compose run tests
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@

# vendor
/.env
/vendor/

# tests
/phpunit.xml
/.phpunit.result.cache
/php/tests/node_modules/
/coverage.xml
6 changes: 0 additions & 6 deletions .styleci.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM php:7.3-cli
FROM php:8.2-cli

RUN apt-get update \
&& apt-get install -y unzip \
&& docker-php-ext-install pcntl \
&& pecl install xdebug \
&& echo "zend_extension=xdebug.so" > /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.mode=coverage" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 1999-2020. Plesk International GmbH.
Copyright 1999-2025. WebPros International GmbH.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
## PHP library for Plesk XML-RPC API

[![Build Status](https://travis-ci.com/plesk/api-php-lib.svg?branch=master)](https://travis-ci.com/plesk/api-php-lib) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/plesk/api-php-lib/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/plesk/api-php-lib/?branch=master)
[![StyleCI](https://styleci.io/repos/26514840/shield?branch=master)](https://styleci.io/repos/26514840)
[![Test Status](https://github.com/plesk/api-php-lib/actions/workflows/test.yml/badge.svg)](https://github.com/plesk/api-php-lib/actions/workflows/test.yml)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/plesk/api-php-lib/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/plesk/api-php-lib/?branch=master)
[![codecov](https://codecov.io/gh/plesk/api-php-lib/branch/master/graph/badge.svg?token=5Kwbddpdeb)](https://codecov.io/gh/plesk/api-php-lib)

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

22 changes: 16 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -9,26 +9,36 @@
"email": "sibprogrammer@gmail.com"
},
{
"name": "Plesk International GmbH.",
"name": "WebPros International GmbH.",
"email": "plesk-dev-leads@plesk.com"
}
],
"require": {
"php": "^7.3",
"php": "^7.4 || ^8.0",
"ext-curl": "*",
"ext-xml": "*",
"ext-simplexml": "*"
"ext-simplexml": "*",
"ext-dom": "*"
},
"require-dev": {
"phpunit/phpunit": "^9",
"spatie/phpunit-watcher": "^1.22"
"spatie/phpunit-watcher": "^1.22",
"vimeo/psalm": "^4.10 || ^5.0",
"squizlabs/php_codesniffer": "^3.6"
},
"config": {
"process-timeout": 0
"process-timeout": 0,
"platform": {
"php": "7.4.27"
}
},
"scripts": {
"test": "phpunit",
"test:watch": "phpunit-watcher watch"
"test:watch": "phpunit-watcher watch",
"lint": [
"psalm",
"phpcs"
]
},
"autoload": {
"psr-4": {
Loading