Skip to content

Commit 63a7f6e

Browse files
authored
Merge pull request #29 from igorbunov/remove-php7
remove php 7 support
2 parents 21530a5 + ab27d77 commit 63a7f6e

File tree

7 files changed

+210
-476
lines changed

7 files changed

+210
-476
lines changed

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.github export-ignore
2+
docker export-ignore
3+
tests export-ignore
4+
.gitignore export-ignore
5+
.gitattributes export-ignore
6+
Makefile export-ignore
7+
phpunit.xml export-ignore

.github/workflows/CI.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,42 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7+
name: Build on ${{ matrix.php-versions }} / ${{ matrix.dependency-level }}
78
runs-on: ubuntu-latest
89
strategy:
910
matrix:
10-
php-versions: ['7.4']
11+
php-versions: ['8.0']
12+
dependency-level: ['high', 'low', 'stable']
1113
steps:
12-
- uses: actions/checkout@v1
13-
- uses: shivammathur/setup-php@v1
14+
- uses: actions/checkout@v3
15+
- uses: shivammathur/setup-php@v2
1416
with:
1517
php-version: ${{ matrix.php-versions }}
1618
extensions: mbstring, gd, zip
1719
ini-values: max_execution_time=600, memory_limit=-1
1820
coverage: xdebug
21+
tools: composer:v2
1922
- name: Validate composer.json
2023
run: |
2124
curl -sS https://getcomposer.org/installer | php -- --filename=composer
2225
composer validate
23-
- name: Install dependency
26+
- name: Install dependency (high deps)
2427
run: |
25-
composer install
28+
composer update --prefer-dist --no-interaction
29+
if: ${{ matrix.dependency-level == 'high' }}
30+
31+
- name: Install dependency (low deps)
32+
run: |
33+
composer update --prefer-dist --no-interaction --prefer-stable --prefer-lowest
34+
if: ${{ matrix.dependency-level == 'low' }}
35+
36+
- name: Install dependency (stable deps)
37+
run: |
38+
composer update --prefer-dist --no-interaction --prefer-stable
39+
if: ${{ matrix.dependency-level == 'stable' }}
2640
- name: Analyze code
2741
run: |
2842
composer static
2943
- name: Run tests
3044
run: |
31-
composer unit-tests
45+
composer unit-tests

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
default_php_version:=7.4
1+
default_php_version:=8.0
22
default_server_port:=8080
33
php_version:=$(PHP_VERSION)
44
server_port:=$(PORT)
@@ -40,4 +40,4 @@ coverage:
4040

4141
all: build install static-analyze unit coverage
4242

43-
.PHONY: build
43+
.PHONY: build

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[![Packagist](https://img.shields.io/badge/package-igorbunov/checkbox--in--ua--php--sdk-blue.svg?style=flat-square)](https://github.com/igorbunov/checkbox-in-ua-php-sdk)
33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/igorbunov/checkbox-in-ua-php-sdk.svg?style=flat-square)](https://github.com/igorbunov/checkbox-in-ua-php-sdk)
44
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
5-
[![PHP >=7.4](https://img.shields.io/badge/php-%3E=_7.4-orange.svg?style=flat-square)](https://github.com/igorbunov/checkbox-in-ua-php-sdk)
5+
[![PHP >=8.0](https://img.shields.io/badge/php-%3E=_8.0-orange.svg?style=flat-square)](https://github.com/igorbunov/checkbox-in-ua-php-sdk)
66
[![Total Downloads](https://poser.pugx.org/igorbunov/checkbox-in-ua-php-sdk/downloads)](https://github.com/igorbunov/checkbox-in-ua-php-sdk)
77

88
# checkbox-in-ua-php-sdk
@@ -561,11 +561,9 @@ make serve
561561
make serve PORT=8081
562562
```
563563

564-
*Dafault php version is 7.4*. Use PHP_VERSION= for using custom version.
564+
*Dafault php version is 8.0*. Use PHP_VERSION= for using custom version.
565565
```shell
566566
make all PHP_VERSION=8.0
567-
# run both
568-
make all PHP_VERSION=7.4 && make all PHP_VERSION=8.0
569567
```
570568

571569
all commands

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"minimum-stability": "dev",
1313
"require": {
1414
"guzzlehttp/guzzle": "^7.4",
15-
"php": ">=7.4 || ^8.0.2"
15+
"php": ">=8.0"
1616
},
1717
"require-dev": {
18-
"phpunit/phpunit": "^8.1 || ^9.1",
19-
"squizlabs/php_codesniffer": "3.*",
20-
"phpstan/phpstan": "^0.12.19",
18+
"phpunit/phpunit": "^9.1",
19+
"squizlabs/php_codesniffer": "^3.5.7",
20+
"phpstan/phpstan": "^0.12.57",
2121
"otis22/php-coverage-checker": "^1.2"
2222
},
2323
"autoload": {

0 commit comments

Comments
 (0)