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

feat(php): drop support for EOLed PHP versions and unify min required version #17826

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
32 changes: 0 additions & 32 deletions .github/workflows/samples-php7.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Generated by the [OpenAPI Generator](https://openapi-generator.tech) project.
## Overview
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:

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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"version": "{{artifactVersion}}",
"type": "library",
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.1",
"articus/data-transfer": "^0.6",
"articus/openapi-generator-common": "^0.3",
"articus/openapi-generator-apiclient": "^0.2",
Expand All @@ -36,4 +36,4 @@
"nyholm/psr7": "^1.8",
"symfony/http-client": "^5.4"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"type": "library",
"require": {
"php": "^8.1.0",
"php": "^8.1",
"flightphp/core": "^3.5.1",
"ext-json": "*"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
"type": "project",
"require": {
"php": "^7.2.5",
"php": "^8.1",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^1.0",
"guzzlehttp/guzzle": "^6.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
],
"type": "project",
"require": {
"php": "^7.2.5",
"php": "^8.1",
"laravel/lumen-framework": "^7.2"
},
"require-dev": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Generated by the [OpenAPI Generator](https://openapi-generator.tech) project.
## Overview
This server stub aims to provide light, yet comprehensive structure for your API project using:

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"version": "{{artifactVersion}}",
"type": "project",
"require": {
"php": "^8.0",
"php": "^8.1",
"ext-yaml": "^2.2",
"mezzio/mezzio": "^3.3",
"laminas/laminas-diactoros": "^2.5",
Expand All @@ -36,4 +36,4 @@
"": "src/"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Generated by the [OpenAPI Generator](https://openapi-generator.tech) project.
## Overview
This server stub aims to provide light, yet comprehensive structure for your API project using:

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
],
"require": {
"php": "^7.3 || ^8.0",
"php": "^8.1",
"ext-yaml": "^2.0",
"mezzio/mezzio": "^3.2",
"laminas/laminas-diactoros": "^2.1",
Expand All @@ -37,4 +37,4 @@
"": "src/"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This server has been generated with [Laminas (Zend) PSR-7 implementation](https:
## Requirements

* Web server with URL rewriting
* PHP 7.4 or newer
* PHP 8.1 or newer

This package contains `.htaccess` for Apache configuration.
If you use another server(Nginx, HHVM, IIS, lighttpd) check out [Web Servers](https://www.slimframework.com/docs/v3/start/web-servers.html) doc.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.1",
"dyorg/slim-token-authentication": "dev-slim4",
{{#isGuzzlePsr7}}
"guzzlehttp/psr7": "^1.6.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
php-versions: ['7.4', '8.0', '8.1']
php-versions: ['8.1']
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{#appName}}
* {{{.}}}
{{/appName}}
* PHP version 7.4
* PHP version 8.1
*
* @package {{invokerPackage}}
* @author OpenAPI Generator team
Expand All @@ -20,4 +20,4 @@
* Contact: {{{.}}}
{{/infoEmail}}
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
*/
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}
],
"require": {
"php": ">=8.1",
"php": "^8.1",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* ApiException
* PHP version 7.4
* PHP version 8.1
*
* @category Class
* @package {{invokerPackage}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Configuration
* PHP version 7.4
* PHP version 8.1
*
* @category Class
* @package {{invokerPackage}}
Expand All @@ -20,7 +20,7 @@ namespace {{invokerPackage}};

/**
* Configuration Class Doc Comment
* PHP version 7.4
* PHP version 8.1
*
* @category Class
* @package {{invokerPackage}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* HeaderSelector
* PHP version 7.4
* PHP version 8.1
*
* @category Class
* @package {{invokerPackage}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* ModelInterface
*
* PHP version 7.4
* PHP version 8.1
*
* @category Class
* @package {{modelPackage}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* ObjectSerializer
*
* PHP version 7.4
* PHP version 8.1
*
* @category Class
* @package {{invokerPackage}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}}).

### Requirements

PHP 7.4 and later.
Should also work with PHP 8.0.
PHP 8.1 and later.

### Composer

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* {{classname}}
* PHP version 7.4
* PHP version 8.1
*
* @category Class
* @package {{invokerPackage}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* {{classname}}Test
* PHP version 7.4
* PHP version 8.1
*
* @category Class
* @package {{invokerPackage}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.1",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"sort-packages": true
},
"require": {
"php": ">=7.2",
"php": "^8.1",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* {{classname}}
*
* PHP version 7.4
* PHP version 8.1
*
* @category Class
* @package {{invokerPackage}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* {{classname}}Test
*
* PHP version 7.4
* PHP version 8.1
*
* @category Class
* @package {{invokerPackage}}
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/php-dt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Generated by the [OpenAPI Generator](https://openapi-generator.tech) project.
## Overview
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:

- PHP: >=7.4
- PHP: >=8.1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is the whitespace coming from 🤔

- [Data Transfer](https://github.com/Articus/DataTransfer): >=0.6


Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/php-dt/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"version": "1.0.0",
"type": "library",
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.1",
"articus/data-transfer": "^0.6",
"articus/openapi-generator-common": "^0.3",
"articus/openapi-generator-apiclient": "^0.2",
Expand All @@ -36,4 +36,4 @@
"nyholm/psr7": "^1.8",
"symfony/http-client": "^5.4"
}
}
}
3 changes: 1 addition & 2 deletions samples/client/petstore/php/OpenAPIClient-php/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ This spec is mainly for testing Petstore server and contains fake endpoints, mod

### Requirements

PHP 7.4 and later.
Should also work with PHP 8.0.
PHP 8.1 and later.

### Composer

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.1",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* AnotherFakeApi
* PHP version 7.4
* PHP version 8.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* DefaultApi
* PHP version 7.4
* PHP version 8.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* FakeApi
* PHP version 7.4
* PHP version 8.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* FakeClassnameTags123Api
* PHP version 7.4
* PHP version 8.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* PetApi
* PHP version 7.4
* PHP version 8.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Loading
Loading