Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for PHP 8.0, 8.1, 8.2 #18

Merged
merged 2 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
33 changes: 15 additions & 18 deletions .github/workflows/styles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: '8.1'
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv
tools: php-cs-fixer, cs2pr
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: composer install --prefer-dist
- run: ./vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php -v --dry-run --using-cache=no --format=checkstyle | cs2pr

Expand All @@ -26,9 +26,8 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: composer install --prefer-dist
- run: ./vendor/bin/phpmd ./ text ./phpmd.xml --suffixes php,inc,test --exclude vendor,bin,tests,examples

Expand All @@ -39,21 +38,19 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: composer install --prefer-dist
- run: ./vendor/bin/psalm --output-format=github

# security-checker:
# name: security-checker
# runs-on: ubuntu-latest
# steps:
# - name: Setup PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: '7.4'
# tools: composer:v2
# - uses: actions/checkout@v2
# - run: composer install --prefer-dist
# - uses: symfonycorp/security-checker-action@v3
security-checker:
name: security-checker
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
tools: composer:v2
- uses: actions/checkout@v4
- run: composer install --prefer-dist
- uses: symfonycorp/security-checker-action@v3
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
TRUSTEDSHOPS_TSID: ${{ secrets.TRUSTEDSHOPS_TSID }}
strategy:
matrix:
php-versions: ['7.4']
php-versions: ['8.0', '8.1', '8.2', '8.3']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- add .editorconfig file
- add coveralls phpunit coverage upload
- add coverage on cURL availability tests
- add support for PHP 8.0, 8.1 & 8.2
- add security-checker on Github Actions

### Security
- ugprade phpunit/phpunit 7.x => 8.x
- update phpmd/phpmd (2.7.0 => 2.15.0)
- guzzlehttp/guzzle (6.3.3 => 7.8.1)
- symfony/dotenv (v4.3.4 => v4.4.37)
- guzzlehttp/psr7 (1.6.1 => 2.6.2)
- upgrade friendsofphp/php-cs-fixer (v2.19.3 => v3.4.0)
- upgrade phpunit/phpunit 8.x -> 9.x

### Removed
- remove StyleCI in favor of Github Actions
- drop support for PHP 7.4 and below

## 1.0.0 - 2019-10-08
### Changed
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Requires PHP 7.0+. Abstraction is for chimps.
[![Coverage Status](https://coveralls.io/repos/github/antistatique/trustedshops-php-sdk/badge.svg?branch=master)](https://coveralls.io/github/antistatique/trustedshops-php-sdk?branch=master)
[![Packagist](https://img.shields.io/packagist/dt/antistatique/trustedshops-php-sdk.svg?maxAge=2592000)](https://packagist.org/packages/antistatique/trustedshops-php-sdk)
[![License](https://poser.pugx.org/antistatique/trustedshops-php-sdk/license)](https://packagist.org/packages/antistatique/trustedshops-php-sdk)
[![PHP Versions Supported](https://img.shields.io/badge/php-%3E%3D%208.0-8892BF.svg)](https://packagist.org/packages/antistatique/trustedshops-php-sdk)

Getting started
------------
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"description": "Super-simple, minimum abstraction TrustedShops API v2.x wrapper, in PHP",
"license": "MIT",
"require": {
"php": ">=7.4",
"php": ">=8.0",
"ext-curl": "*",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^8.2",
"phpunit/php-code-coverage": "^7.0",
"phpunit/phpunit": "^9",
"phpunit/php-code-coverage": "^9",
"symfony/dotenv": "^4.3",
"friendsofphp/php-cs-fixer": "^2.12",
"friendsofphp/php-cs-fixer": "^3.0",
"phpmd/phpmd": "^2.6",
"php-coveralls/php-coveralls": "^2.1",
"vimeo/psalm": "^4.30",
Expand Down
Loading
Loading