Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
b98ecc7
Use new default password for integration testing
sibprogrammer Jul 30, 2020
3428abc
Fix redirect handling in case of latest Plesk
sibprogrammer Jul 30, 2020
47f5f2e
Make StyleCI a little bit happier
sibprogrammer Jul 30, 2020
3285435
Switch to PHPUnit 9
sibprogrammer Jul 30, 2020
f8d6be5
Added method for a bulk create and delete DNS records
Dec 16, 2020
824e885
Merge pull request #86 from guyasyou/master
sibprogrammer Dec 17, 2020
1b2efa8
Fix assertion after switching to PHPUnit 9
sibprogrammer Dec 17, 2020
e86a201
New SecretKeys response format support
Dec 23, 2020
7f81b0c
Merge pull request #87 from ova777/master
rybalov Dec 24, 2020
7626f9c
Fix incorrect XML creation for delete requests
sibprogrammer Jan 9, 2021
b0eecee
Add an ability to use proxy server
sibprogrammer Jan 9, 2021
a1bbe18
Fix doc style
sibprogrammer Jan 9, 2021
e634b78
Use Docker access token for TravisCI
sibprogrammer Jan 9, 2021
1e06f0c
Use a special image for tests
sibprogrammer Jan 10, 2021
a484fc9
Update copyright year
sibprogrammer Jan 10, 2021
d2853a3
Add servicePlan create and delete
Oct 28, 2019
80b5aa9
Fix doc block
sibprogrammer Jan 10, 2021
f6c144d
Unify service plan creation interface with other operators
sibprogrammer Jan 10, 2021
d631ec1
Fix StyleCI issues
sibprogrammer Jan 10, 2021
965dc51
Newline should be present before the return statement
sibprogrammer Jan 10, 2021
9d3e0e7
Remove outdated reference
sibprogrammer Jan 10, 2021
d41c160
Introduce an integration with code coverage tracking service
sibprogrammer Jan 10, 2021
0af60ab
Add information about the code coverage
sibprogrammer Jan 10, 2021
7c79952
Add tests for site aliases
sibprogrammer Jan 12, 2021
2188d01
Issue #82: fix the wrapping if dataset is empty
sibprogrammer Jan 17, 2021
a5e0adc
Issue #11: implement mailnames fetching operations
sibprogrammer Jan 17, 2021
92a2b6e
Make additional parameters available as property of class
simonsolutions Jan 31, 2021
caeb83c
Add assertions for new properties
sibprogrammer Jan 31, 2021
b07aa17
Issue #89: compatibility with PHP 8
sibprogrammer Jan 31, 2021
40990d5
Use new format of XML configuration for PHPUnit
sibprogrammer Jan 31, 2021
9be3148
Update SecretKey.php
simonsolutions Feb 20, 2021
c9de9a6
Style fixes
sibprogrammer Feb 25, 2021
3933ee1
Cover new secret key options with unit tests
sibprogrammer Feb 25, 2021
f4aa65e
Add missed stat details (based on rene-gates <development@lazybox.de>…
sibprogrammer Feb 26, 2021
859c16f
Add additional fields for webspace (based on Etmolf work)
sibprogrammer Mar 28, 2021
e0bc21b
Switch to new Plesk image for tests in docker.
vizovitin Jun 4, 2021
87980e9
Merge pull request #102 from vizovitin/new-plesk-image-with-real-systemd
rybalov Jun 4, 2021
9d36db6
Add additional fields for site
simonsolutions Sep 2, 2021
fd74ae2
Test additional properties for sites
sibprogrammer Sep 13, 2021
8f4f9f4
Add create session for automatic login with token
simonsolutions Sep 8, 2021
b0aba30
Fix style issue
sibprogrammer Sep 15, 2021
f2df92b
Remove deprecated parameter
sibprogrammer Sep 15, 2021
f881d91
Merge session creation method
sibprogrammer Sep 15, 2021
ecd3f5c
Remove redundant new line
sibprogrammer Sep 15, 2021
c8a200e
Demonstrate how to create a secret key for multiple IP addresses
sibprogrammer Sep 15, 2021
ca9bbac
Introduce GitHub Action for CI
sibprogrammer Sep 16, 2021
9fb853c
Get rid of TravisCI integration
sibprogrammer Sep 16, 2021
a665af5
Prefill object id for fetch operations
sibprogrammer Sep 17, 2021
a7e1c46
Bump min PHP version to 7.4
sibprogrammer Oct 1, 2021
15837e8
Introduce code linting using Psalm
sibprogrammer Oct 1, 2021
0fdd640
Fix psr/log dependecy conflict instroduced due to PHP 8 usage
sibprogrammer Oct 1, 2021
8ad7345
Use type hints instead of doc blocks
sibprogrammer Oct 1, 2021
21ecea0
BUGFIX EXTREST-137 simpleXml fix for & in values.
Oct 5, 2021
f226ce3
Merge pull request #109 from plesk/bugfix-vdiomidov-simplexml-amprsan…
xgin Oct 6, 2021
bdaad89
Fix issues reported by psalm
sibprogrammer Oct 6, 2021
be8c4ab
Fix StyleCI issues
sibprogrammer Oct 7, 2021
717cfd0
Make psalm as an essential part of testing phase
sibprogrammer Oct 7, 2021
fe2cfd7
Keep the ability to provide additional options to PHPUnit
sibprogrammer Oct 7, 2021
9d45052
Use Plesk Docker container defaults to simplify tests execution
sibprogrammer Oct 13, 2021
772b810
Add an ability to enable/disable customers
sibprogrammer Oct 13, 2021
f0b3481
Fix StyleCI issue
sibprogrammer Oct 13, 2021
8d45955
Add an ability to update customer's properties
sibprogrammer Oct 17, 2021
115511a
Add an ability to enable/disable webspace and set other properties
sibprogrammer Oct 17, 2021
f0e4ac3
Introduce PHPCS for style checks (future replacement of StyleCI)
sibprogrammer Oct 24, 2021
2c111ff
Fix code style violations found by phpcs
sibprogrammer Oct 24, 2021
ebeace7
Replace StyleCI with phpcs
sibprogrammer Oct 26, 2021
639560d
Fix test class names due to incorrect automatic refactoring
sibprogrammer Oct 27, 2021
bd32dba
Replace docblock with type hints in tests to enforce type checks
sibprogrammer Oct 27, 2021
4191ffd
Enforce type checks for better code quality
sibprogrammer Oct 29, 2021
b2b7ebe
Update PHP deps to latest versions
sibprogrammer Nov 28, 2021
f65d8fa
Fix #63: Add an ability to set two IPs (v4 and v6) for webspace
sibprogrammer Nov 28, 2021
b282679
Use forced cast to proper response type (including SDK API use case)
sibprogrammer Jan 19, 2022
37f798d
TECH Update copyright year
sibprogrammer Jan 20, 2022
4bef1cd
Fix #110: correct processing of multiple IPs on webspace creation
sibprogrammer Mar 10, 2022
0120437
BUGFIX EXTREST-143 Extend already set properties instead of overwriti…
Mar 28, 2022
8d45944
Merge pull request #112 from abashurov/master
rybalov Mar 28, 2022
465c207
BUGFIX EXTREST-143 Fix incorrect line formatting
Mar 28, 2022
6517a82
Merge pull request #113 from abashurov/master
sibprogrammer Mar 29, 2022
9f7a06f
TECH Add a test for extended field values
Mar 29, 2022
ce25ff4
Merge pull request #114 from abashurov/master
sibprogrammer Mar 29, 2022
9d134fb
Fix #116: correct handling of empty resellers list
sibprogrammer Nov 9, 2022
8c9dec8
Merge remote-tracking branch 'upstream/master' into upgrade
Feb 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: test

on: [push]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: docker-compose run tests
- run: bash <(curl -s https://codecov.io/bash)
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
.idea
/nbproject/
/.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:7.4-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-2022. Plesk International GmbH.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
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.

Expand Down
14 changes: 10 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,27 @@
}
],
"require": {
"php": "^7.3",
"php": "^7.4 || ^8.0",
"ext-curl": "*",
"ext-xml": "*",
"ext-simplexml": "*"
},
"require-dev": {
"phpunit/phpunit": "^8",
"spatie/phpunit-watcher": "^1.22"
"phpunit/phpunit": "^9",
"spatie/phpunit-watcher": "^1.22",
"vimeo/psalm": "^4.10",
"squizlabs/php_codesniffer": "^3.6"
},
"config": {
"process-timeout": 0
},
"scripts": {
"test": "phpunit",
"test:watch": "phpunit-watcher watch"
"test:watch": "phpunit-watcher watch",
"lint": [
"psalm",
"phpcs"
]
},
"autoload": {
"psr-4": {
Expand Down
Loading