Skip to content

Commit 0bdc934

Browse files
Merge pull request #5 from shellrent/upgrade
Sync upstream 2.0.0 e upgrade php 8.0
2 parents 860e087 + 8c9dec8 commit 0bdc934

File tree

129 files changed

+5654
-2925
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+5654
-2925
lines changed

.github/workflows/test.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: test
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- run: docker-compose run tests
11+
- run: bash <(curl -s https://codecov.io/bash)

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
.idea
44
/nbproject/
55
/.phpunit.result.cache
6-
/php/tests/node_modules/
6+
/coverage.xml

.styleci.yml

-6
This file was deleted.

.travis.yml

-4
This file was deleted.

Dockerfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
FROM php:7.3-cli
1+
FROM php:7.4-cli
22

33
RUN apt-get update \
44
&& apt-get install -y unzip \
55
&& docker-php-ext-install pcntl \
6+
&& pecl install xdebug \
7+
&& echo "zend_extension=xdebug.so" > /usr/local/etc/php/conf.d/xdebug.ini \
8+
&& echo "xdebug.mode=coverage" >> /usr/local/etc/php/conf.d/xdebug.ini \
69
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 1999-2020. Plesk International GmbH.
1+
Copyright 1999-2022. Plesk International GmbH.
22

33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
## PHP library for Plesk XML-RPC API
22

3-
[![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)
4-
[![StyleCI](https://styleci.io/repos/26514840/shield?branch=master)](https://styleci.io/repos/26514840)
3+
[![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)
4+
[![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)
5+
[![codecov](https://codecov.io/gh/plesk/api-php-lib/branch/master/graph/badge.svg?token=5Kwbddpdeb)](https://codecov.io/gh/plesk/api-php-lib)
56

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

composer.json

+10-4
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,27 @@
1414
}
1515
],
1616
"require": {
17-
"php": "^7.3",
17+
"php": "^7.4 || ^8.0",
1818
"ext-curl": "*",
1919
"ext-xml": "*",
2020
"ext-simplexml": "*"
2121
},
2222
"require-dev": {
23-
"phpunit/phpunit": "^8",
24-
"spatie/phpunit-watcher": "^1.22"
23+
"phpunit/phpunit": "^9",
24+
"spatie/phpunit-watcher": "^1.22",
25+
"vimeo/psalm": "^4.10",
26+
"squizlabs/php_codesniffer": "^3.6"
2527
},
2628
"config": {
2729
"process-timeout": 0
2830
},
2931
"scripts": {
3032
"test": "phpunit",
31-
"test:watch": "phpunit-watcher watch"
33+
"test:watch": "phpunit-watcher watch",
34+
"lint": [
35+
"psalm",
36+
"phpcs"
37+
]
3238
},
3339
"autoload": {
3440
"psr-4": {

0 commit comments

Comments
 (0)