From a77c6c895082387cb458f56dd0f2339785493095 Mon Sep 17 00:00:00 2001 From: Orkun Date: Wed, 10 Jul 2024 17:17:01 +0300 Subject: [PATCH 1/6] docs(readme): update badges and logo --- README.md | 34 ++++++++++------------------------ template/README.mustache | 34 ++++++++++------------------------ 2 files changed, 20 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index 70b6c14d..b6ea2a17 100644 --- a/README.md +++ b/README.md @@ -1,34 +1,20 @@

- - - Fingerprint logo + + + Fingerprint logo

- - CI badge - - - CI badge - - - CI badge - - - Latest Stable Version on Packagist - - - PHP Version Require - - - - - - Discord server - + CI badge + CI badge + CI badge + Latest Stable Version on Packagist + PHP Version Require + + Discord server

# Fingerprint Pro Server API PHP SDK diff --git a/template/README.mustache b/template/README.mustache index d5fe3228..4c895787 100644 --- a/template/README.mustache +++ b/template/README.mustache @@ -1,34 +1,20 @@

- - - Fingerprint logo + + + Fingerprint logo

- - CI badge - - - CI badge - - - CI badge - - - Latest Stable Version on Packagist - - - PHP Version Require - - - - - - Discord server - + CI badge + CI badge + CI badge + Latest Stable Version on Packagist + PHP Version Require + + Discord server

# Fingerprint Pro Server API PHP SDK From 5698871fa497ee4ad50b2941d39769b45f15dfc2 Mon Sep 17 00:00:00 2001 From: Orkun Date: Wed, 17 Jul 2024 12:56:48 +0300 Subject: [PATCH 2/6] feat: upgrade min php version to 8 BREAKING CHANGE: Upgraded minimum php version to 8.1 --- .github/workflows/functional.yml | 2 +- .github/workflows/test.yml | 2 +- composer.json | 2 +- docker-compose.yml | 4 ++-- scripts/functional.sh | 2 +- src/Api/FingerprintApi.php | 9 --------- template/api.mustache | 9 --------- template/composer.mustache | 2 +- 8 files changed, 7 insertions(+), 25 deletions(-) diff --git a/.github/workflows/functional.yml b/.github/workflows/functional.yml index 01adce64..433e9d5c 100644 --- a/.github/workflows/functional.yml +++ b/.github/workflows/functional.yml @@ -16,7 +16,7 @@ jobs: strategy: max-parallel: 1 matrix: - php_version: [ "7.3", "7.4", "8.0", "8.1", "8.2" ] + php_version: [ "8.1", "8.2", "8.3" ] steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 50a7568e..4b46db6b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - php_version: [ "7.3", "7.4", "8.0", "8.1", "8.2", "8.3" ] + php_version: [ "8.1", "8.2", "8.3" ] steps: - uses: actions/checkout@v4 diff --git a/composer.json b/composer.json index dc63c971..b3a04720 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,7 @@ } ], "require": { - "php": ">=7.1", + "php": ">=8.1", "ext-curl": "*", "ext-json": "*", "ext-mbstring": "*", diff --git a/docker-compose.yml b/docker-compose.yml index 1ec14bda..bef1d6f3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,14 +7,14 @@ services: volumes: - ./:/app php: - image: php:7.2-cli + image: php:8.1-cli volumes: - ./:/app working_dir: /app env_file: - .env phpunit: - image: php:7.2-cli + image: php:8.1-cli volumes: - ./:/app working_dir: /app diff --git a/scripts/functional.sh b/scripts/functional.sh index d65c00fc..26b21a26 100755 --- a/scripts/functional.sh +++ b/scripts/functional.sh @@ -1 +1 @@ -docker container run --env-file .env --rm -v $(pwd):/app/ php:7.2-cli php /app/run_checks.php \ No newline at end of file +docker container run --env-file .env --rm -v $(pwd):/app/ php:8.1-cli php /app/run_checks.php \ No newline at end of file diff --git a/src/Api/FingerprintApi.php b/src/Api/FingerprintApi.php index 2418a286..ea36b13f 100644 --- a/src/Api/FingerprintApi.php +++ b/src/Api/FingerprintApi.php @@ -78,15 +78,6 @@ public function __construct( $this->client = $client ?: new Client(); $this->config = $config ?: new Configuration(); $this->headerSelector = $selector ?: new HeaderSelector(); - - // TODO Remove on next major release - if(version_compare( - PHP_VERSION, - '8.1', - '<' - )) { - trigger_error('You are using a PHP version that has reached EOL. Support for it will be removed in next major release of this SDK. Please consider upgrading to PHP 8.1 or higher.', E_USER_WARNING); - } } /** diff --git a/template/api.mustache b/template/api.mustache index aca8ab86..e2cd5cda 100644 --- a/template/api.mustache +++ b/template/api.mustache @@ -69,15 +69,6 @@ use {{invokerPackage}}\ObjectSerializer; $this->client = $client ?: new Client(); $this->config = $config ?: new Configuration(); $this->headerSelector = $selector ?: new HeaderSelector(); - - // TODO Remove on next major release - if(version_compare( - PHP_VERSION, - '8.1', - '<' - )) { - trigger_error('You are using a PHP version that has reached EOL. Support for it will be removed in next major release of this SDK. Please consider upgrading to PHP 8.1 or higher.', E_USER_WARNING); - } } /** diff --git a/template/composer.mustache b/template/composer.mustache index 7e565c26..397d75a8 100644 --- a/template/composer.mustache +++ b/template/composer.mustache @@ -32,7 +32,7 @@ } ], "require": { - "php": ">=7.1", + "php": ">=8.1", "ext-curl": "*", "ext-json": "*", "ext-mbstring": "*", From 448dd9e1e001c496430c48d9d1558060cb8e4bb0 Mon Sep 17 00:00:00 2001 From: Orkun Date: Wed, 17 Jul 2024 13:09:30 +0300 Subject: [PATCH 3/6] docs(readme): fix php require badge --- README.md | 28 ++++++++++++++-------------- template/README.mustache | 28 ++++++++++++++-------------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index b6ea2a17..f26f933e 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,20 @@

- - - - - Fingerprint logo - - + + + + +Fingerprint logo + +

- CI badge - CI badge - CI badge - Latest Stable Version on Packagist - PHP Version Require - - Discord server +CI badge +CI badge +CI badge +Latest Stable Version on Packagist +PHP Version Require + +Discord server

# Fingerprint Pro Server API PHP SDK diff --git a/template/README.mustache b/template/README.mustache index 4c895787..c81af588 100644 --- a/template/README.mustache +++ b/template/README.mustache @@ -1,20 +1,20 @@

- - - - - Fingerprint logo - - + + + + +Fingerprint logo + +

- CI badge - CI badge - CI badge - Latest Stable Version on Packagist - PHP Version Require - - Discord server +CI badge +CI badge +CI badge +Latest Stable Version on Packagist +PHP Version Require + +Discord server

# Fingerprint Pro Server API PHP SDK From 47bd8327771c05b89b1b09380c613dd1aec4a61e Mon Sep 17 00:00:00 2001 From: Orkun Date: Wed, 17 Jul 2024 13:14:59 +0300 Subject: [PATCH 4/6] docs(readme): change style for min php version badge --- README.md | 2 +- template/README.mustache | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f26f933e..e7796c07 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ CI badge CI badge Latest Stable Version on Packagist -PHP Version Require +PHP Version Require Discord server

diff --git a/template/README.mustache b/template/README.mustache index c81af588..b9e093fd 100644 --- a/template/README.mustache +++ b/template/README.mustache @@ -12,7 +12,7 @@ CI badge CI badge Latest Stable Version on Packagist -PHP Version Require +PHP Version Require Discord server

From 8acd7022fda2fb84bb361f635104d0439b396e18 Mon Sep 17 00:00:00 2001 From: Orkun Date: Wed, 17 Jul 2024 13:29:52 +0300 Subject: [PATCH 5/6] chore: add ilfa as codeowner --- CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CODEOWNERS b/CODEOWNERS index b2a35b73..aea35540 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1 +1 @@ -* @orkuncakilkaya @TheUnderScorer +* @orkuncakilkaya @TheUnderScorer @ilfa From ffae00ca8148fd7aea680bb91142d295ad29163c Mon Sep 17 00:00:00 2001 From: Orkun Date: Wed, 17 Jul 2024 13:37:43 +0300 Subject: [PATCH 6/6] docs(readme): change from http to https for some links --- README.md | 4 ++-- template/README.mustache | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e7796c07..0f198b1c 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ CI badge CI badge Latest Stable Version on Packagist -PHP Version Require +PHP Version Require Discord server

@@ -42,7 +42,7 @@ We currently don't support external PHP Runtimes like: ## Installation & Usage ### Composer -To install the bindings via [Composer](http://getcomposer.org/), add the following to `composer.json`: +To install the bindings via [Composer](https://getcomposer.org/), add the following to `composer.json`: ``` { diff --git a/template/README.mustache b/template/README.mustache index b9e093fd..367f7cc9 100644 --- a/template/README.mustache +++ b/template/README.mustache @@ -12,7 +12,7 @@ CI badge CI badge Latest Stable Version on Packagist -PHP Version Require +PHP Version Require Discord server

@@ -52,7 +52,7 @@ We currently don't support external PHP Runtimes like: ## Installation & Usage ### Composer -To install the bindings via [Composer](http://getcomposer.org/), add the following to `composer.json`: +To install the bindings via [Composer](https://getcomposer.org/), add the following to `composer.json`: ``` {