Skip to content

Commit 31872f5

Browse files
committed
feat(php): drop support for EOLed PHP versions and unify min required version
1 parent 866558f commit 31872f5

File tree

177 files changed

+206
-191
lines changed

Some content is hidden

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

177 files changed

+206
-191
lines changed

modules/openapi-generator/src/main/resources/php-dt/README.md.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Generated by the [OpenAPI Generator](https://openapi-generator.tech) project.
55
## Overview
66
This lightweight extensible client library is [PSR-7](https://www.php-fig.org/psr/psr-7), [PSR-11](https://www.php-fig.org/psr/psr-11), [PSR-17](https://www.php-fig.org/psr/psr-17) and [PSR-18](https://www.php-fig.org/psr/psr-18) complaint and relies on:
77

8-
- PHP: >=7.4
8+
- PHP: >=8.1
99
- [Data Transfer](https://github.com/Articus/DataTransfer): >=0.6
1010

1111

modules/openapi-generator/src/main/resources/php-dt/composer.json.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": "{{artifactVersion}}",
1919
"type": "library",
2020
"require": {
21-
"php": "^7.4 || ^8.0",
21+
"php": "^8.1",
2222
"articus/data-transfer": "^0.6",
2323
"articus/openapi-generator-common": "^0.3",
2424
"articus/openapi-generator-apiclient": "^0.2",
@@ -36,4 +36,4 @@
3636
"nyholm/psr7": "^1.8",
3737
"symfony/http-client": "^5.4"
3838
}
39-
}
39+
}

modules/openapi-generator/src/main/resources/php-flight/composer.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"type": "library",
1919
"require": {
20-
"php": "^8.1.0",
20+
"php": "^8.1",
2121
"flightphp/core": "^3.5.1",
2222
"ext-json": "*"
2323
},

modules/openapi-generator/src/main/resources/php-laravel/composer.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
}
2525
],
2626
"require": {
27-
"php": ">=8.1",
27+
"php": "^8.1",
2828
"laravel/framework": "^10.0",
2929
"crell/serde": "^1.0"
3030
},

modules/openapi-generator/src/main/resources/php-lumen/composer.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
],
2525
"type": "project",
2626
"require": {
27-
"php": "^7.2.5",
27+
"php": "^8.1",
2828
"laravel/lumen-framework": "^7.2"
2929
},
3030
"require-dev": {

modules/openapi-generator/src/main/resources/php-mezzio-ph-modern/README.md.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Generated by the [OpenAPI Generator](https://openapi-generator.tech) project.
55
## Overview
66
This server stub aims to provide light, yet comprehensive structure for your API project using:
77

8-
- PHP: >=8.0
8+
- PHP: >=8.1
99
- [Laminas Mezzio](https://docs.mezzio.dev/mezzio/): >=3.3
1010
- [Path Handler](https://github.com/Articus/PathHandler): >=0.7
1111

modules/openapi-generator/src/main/resources/php-mezzio-ph-modern/composer.json.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": "{{artifactVersion}}",
1919
"type": "project",
2020
"require": {
21-
"php": "^8.0",
21+
"php": "^8.1",
2222
"ext-yaml": "^2.2",
2323
"mezzio/mezzio": "^3.3",
2424
"laminas/laminas-diactoros": "^2.5",
@@ -36,4 +36,4 @@
3636
"": "src/"
3737
}
3838
}
39-
}
39+
}

modules/openapi-generator/src/main/resources/php-mezzio-ph/README.md.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Generated by the [OpenAPI Generator](https://openapi-generator.tech) project.
55
## Overview
66
This server stub aims to provide light, yet comprehensive structure for your API project using:
77

8-
- PHP: >=7.3
8+
- PHP: >=8.1
99
- [Laminas Mezzio](https://docs.mezzio.dev/mezzio/): >=3.2
1010
- [Path Handler](https://github.com/Articus/PathHandler): >=0.7
1111

modules/openapi-generator/src/main/resources/php-mezzio-ph/composer.json.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919
],
2020
"require": {
21-
"php": "^7.3 || ^8.0",
21+
"php": "^8.1",
2222
"ext-yaml": "^2.0",
2323
"mezzio/mezzio": "^3.2",
2424
"laminas/laminas-diactoros": "^2.1",
@@ -37,4 +37,4 @@
3737
"": "src/"
3838
}
3939
}
40-
}
40+
}

modules/openapi-generator/src/main/resources/php-slim4-server/README.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This server has been generated with [Laminas (Zend) PSR-7 implementation](https:
2020
## Requirements
2121

2222
* Web server with URL rewriting
23-
* PHP 7.4 or newer
23+
* PHP 8.1 or newer
2424

2525
This package contains `.htaccess` for Apache configuration.
2626
If you use another server(Nginx, HHVM, IIS, lighttpd) check out [Web Servers](https://www.slimframework.com/docs/v3/start/web-servers.html) doc.

modules/openapi-generator/src/main/resources/php-slim4-server/composer.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323
],
2424
"require": {
25-
"php": "^7.4 || ^8.0",
25+
"php": "^8.1",
2626
"dyorg/slim-token-authentication": "dev-slim4",
2727
{{#isGuzzlePsr7}}
2828
"guzzlehttp/psr7": "^1.6.1",

modules/openapi-generator/src/main/resources/php-slim4-server/github_action.yml.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
matrix:
1212
operating-system: [ubuntu-latest, windows-latest, macos-latest]
13-
php-versions: ['7.4', '8.0', '8.1']
13+
php-versions: ['8.1']
1414
runs-on: ${{ matrix.operating-system }}
1515
steps:
1616
- name: Checkout

modules/openapi-generator/src/main/resources/php-slim4-server/licenseInfo.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{#appName}}
33
* {{{.}}}
44
{{/appName}}
5-
* PHP version 7.4
5+
* PHP version 8.1
66
*
77
* @package {{invokerPackage}}
88
* @author OpenAPI Generator team
@@ -20,4 +20,4 @@
2020
* Contact: {{{.}}}
2121
{{/infoEmail}}
2222
* Generated by: https://github.com/openapitools/openapi-generator.git
23-
*/
23+
*/

modules/openapi-generator/src/main/resources/php-symfony/composer.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
}
2525
],
2626
"require": {
27-
"php": ">=8.1",
27+
"php": "^8.1",
2828
"ext-curl": "*",
2929
"ext-json": "*",
3030
"ext-mbstring": "*",

modules/openapi-generator/src/main/resources/php/ApiException.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* ApiException
4-
* PHP version 7.4
4+
* PHP version 8.1
55
*
66
* @category Class
77
* @package {{invokerPackage}}

modules/openapi-generator/src/main/resources/php/Configuration.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* Configuration
4-
* PHP version 7.4
4+
* PHP version 8.1
55
*
66
* @category Class
77
* @package {{invokerPackage}}
@@ -20,7 +20,7 @@ namespace {{invokerPackage}};
2020

2121
/**
2222
* Configuration Class Doc Comment
23-
* PHP version 7.4
23+
* PHP version 8.1
2424
*
2525
* @category Class
2626
* @package {{invokerPackage}}

modules/openapi-generator/src/main/resources/php/HeaderSelector.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* HeaderSelector
4-
* PHP version 7.4
4+
* PHP version 8.1
55
*
66
* @category Class
77
* @package {{invokerPackage}}

modules/openapi-generator/src/main/resources/php/ModelInterface.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* ModelInterface
44
*
5-
* PHP version 7.4
5+
* PHP version 8.1
66
*
77
* @category Class
88
* @package {{modelPackage}}

modules/openapi-generator/src/main/resources/php/ObjectSerializer.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* ObjectSerializer
44
*
5-
* PHP version 7.4
5+
* PHP version 8.1
66
*
77
* @category Class
88
* @package {{invokerPackage}}

modules/openapi-generator/src/main/resources/php/README.mustache

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}}).
1212

1313
### Requirements
1414

15-
PHP 7.4 and later.
16-
Should also work with PHP 8.0.
15+
PHP 8.1 and later.
1716

1817
### Composer
1918

modules/openapi-generator/src/main/resources/php/api.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* {{classname}}
4-
* PHP version 7.4
4+
* PHP version 8.1
55
*
66
* @category Class
77
* @package {{invokerPackage}}

modules/openapi-generator/src/main/resources/php/api_test.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* {{classname}}Test
4-
* PHP version 7.4
4+
* PHP version 8.1
55
*
66
* @category Class
77
* @package {{invokerPackage}}

modules/openapi-generator/src/main/resources/php/composer.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
}
2525
],
2626
"require": {
27-
"php": "^7.4 || ^8.0",
27+
"php": "^8.1",
2828
"ext-curl": "*",
2929
"ext-json": "*",
3030
"ext-mbstring": "*",

modules/openapi-generator/src/main/resources/php/libraries/psr-18/composer.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"sort-packages": true
2828
},
2929
"require": {
30-
"php": "^7.4 || ^8.0",
30+
"php": "^8.1",
3131
"ext-curl": "*",
3232
"ext-json": "*",
3333
"ext-mbstring": "*",

modules/openapi-generator/src/main/resources/php/model.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/**
55
* {{classname}}
66
*
7-
* PHP version 7.4
7+
* PHP version 8.1
88
*
99
* @category Class
1010
* @package {{invokerPackage}}

modules/openapi-generator/src/main/resources/php/model_test.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/**
55
* {{classname}}Test
66
*
7-
* PHP version 7.4
7+
* PHP version 8.1
88
*
99
* @category Class
1010
* @package {{invokerPackage}}

samples/client/petstore/php-dt/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Generated by the [OpenAPI Generator](https://openapi-generator.tech) project.
55
## Overview
66
This lightweight extensible client library is [PSR-7](https://www.php-fig.org/psr/psr-7), [PSR-11](https://www.php-fig.org/psr/psr-11), [PSR-17](https://www.php-fig.org/psr/psr-17) and [PSR-18](https://www.php-fig.org/psr/psr-18) complaint and relies on:
77

8-
- PHP: >=7.4
8+
- PHP: >=8.1
99
- [Data Transfer](https://github.com/Articus/DataTransfer): >=0.6
1010

1111

samples/client/petstore/php-dt/composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": "1.0.0",
1919
"type": "library",
2020
"require": {
21-
"php": "^7.4 || ^8.0",
21+
"php": "^8.1",
2222
"articus/data-transfer": "^0.6",
2323
"articus/openapi-generator-common": "^0.3",
2424
"articus/openapi-generator-apiclient": "^0.2",
@@ -36,4 +36,4 @@
3636
"nyholm/psr7": "^1.8",
3737
"symfony/http-client": "^5.4"
3838
}
39-
}
39+
}

samples/client/petstore/php/OpenAPIClient-php/README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ This spec is mainly for testing Petstore server and contains fake endpoints, mod
77

88
### Requirements
99

10-
PHP 7.4 and later.
11-
Should also work with PHP 8.0.
10+
PHP 8.1 and later.
1211

1312
### Composer
1413

samples/client/petstore/php/OpenAPIClient-php/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919
],
2020
"require": {
21-
"php": "^7.4 || ^8.0",
21+
"php": "^8.1",
2222
"ext-curl": "*",
2323
"ext-json": "*",
2424
"ext-mbstring": "*",

samples/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* AnotherFakeApi
4-
* PHP version 7.4
4+
* PHP version 8.1
55
*
66
* @category Class
77
* @package OpenAPI\Client

samples/client/petstore/php/OpenAPIClient-php/lib/Api/DefaultApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* DefaultApi
4-
* PHP version 7.4
4+
* PHP version 8.1
55
*
66
* @category Class
77
* @package OpenAPI\Client

samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* FakeApi
4-
* PHP version 7.4
4+
* PHP version 8.1
55
*
66
* @category Class
77
* @package OpenAPI\Client

samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeClassnameTags123Api.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* FakeClassnameTags123Api
4-
* PHP version 7.4
4+
* PHP version 8.1
55
*
66
* @category Class
77
* @package OpenAPI\Client

samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* PetApi
4-
* PHP version 7.4
4+
* PHP version 8.1
55
*
66
* @category Class
77
* @package OpenAPI\Client

samples/client/petstore/php/OpenAPIClient-php/lib/Api/StoreApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* StoreApi
4-
* PHP version 7.4
4+
* PHP version 8.1
55
*
66
* @category Class
77
* @package OpenAPI\Client

samples/client/petstore/php/OpenAPIClient-php/lib/Api/UserApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* UserApi
4-
* PHP version 7.4
4+
* PHP version 8.1
55
*
66
* @category Class
77
* @package OpenAPI\Client

samples/client/petstore/php/OpenAPIClient-php/lib/ApiException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* ApiException
4-
* PHP version 7.4
4+
* PHP version 8.1
55
*
66
* @category Class
77
* @package OpenAPI\Client

0 commit comments

Comments
 (0)