Skip to content

Commit

Permalink
Merge pull request #2 from PomeloPay/php-upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
m4yankpomelo authored Jul 27, 2023
2 parents b1a2058 + 976f0f8 commit 6e7e286
Show file tree
Hide file tree
Showing 13 changed files with 1,757 additions and 2,134 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ sudo: false
language: php

php:
- 7.0
- 7.1
- 7.2.5
- 8.1

env:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Using this PHP API Client you can interact with your Pomelo Pay Connect API:

## Installation

Requires PHP 7.0 or higher
Requires PHP 7.2.5 or higher

The recommended way to install pomelopay-connect-php is through [Composer](https://getcomposer.org):

Expand Down
14 changes: 8 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@
"keywords": ["pomelopay", "pomelo", "pay", "alipay", "php", "api", "online payments", "card payments"],
"type": "library",
"require": {
"guzzlehttp/guzzle": "~6.0",
"php": ">= 7.0"
"guzzlehttp/guzzle": "^7.0",
"php": ">= 7.2.5"
},
"autoload": {
"psr-4": {
"PomeloPayConnect\\": ["src"]
}
},
"require-dev": {
"phpunit/phpunit": "~5.0",
"squizlabs/php_codesniffer": "^3.1",
"phpunit/phpunit": "^9.0",
"squizlabs/php_codesniffer": "3.7",
"roave/security-advisories": "dev-master",
"phpstan/phpstan": "^0.9.2"
"phpstan/phpstan": "^1.0",
"phpcompatibility/php-compatibility": "^9.3"
},
"replace": {
"symfony/polyfill-php80": "*"
Expand All @@ -29,6 +30,7 @@
}
],
"scripts": {
"test": "./vendor/bin/phpunit -c ./phpunit.xml ./test --coverage-clover=coverage.xml && ./vendor/bin/phpcs --standard=PSR2 ./src/* && ./vendor/bin/phpstan analyse --level=7 ./src"
"test": "./vendor/bin/phpunit -c ./phpunit.xml ./test --coverage-clover=coverage.xml && ./vendor/bin/phpcs --standard=PSR2 ./src/* && ./vendor/bin/phpstan analyse --level=7 ./src",
"sniffer:php8": "phpcs -p ./src --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.1"
}
}
Loading

0 comments on commit 6e7e286

Please sign in to comment.