Openapi-generator: PHP 5.x reaches the end of life by the end of 2018

Created on 15 Oct 2018  ยท  8Comments  ยท  Source: OpenAPITools/openapi-generator

Description

PHP 5.x reaches the end of life by the end of 2018 so we need to upgrade our PHP clients, servers to use PHP 7.x as the default.

Ref: http://php.net/supported-versions.php

openapi-generator version

I suggest we do it as part of the 4.0.0 release (next major release)

Suggest a fix/enhancement

If anyone wants to help on this, please reply to let us know.

PHP Compatibility PHP

All 8 comments

cc @jebentier (2017/07) @dkarlovi (2017/07) @mandrean (2017/08) @jfastnacht (2017/09) @ackintosh (2017/09) @ybelenko (2018/07)

There are worthwhile challenges โœจ:

  • Replace deprecated stuffs
  • Apply new features
  • Update dependencies

PHP: Migrating from PHP 5.6.x to PHP 7.0.x - Manual

I'm working on PHP Slim refactoring descripted in #426. In short it's separating generated stubs from user implementation. I'm quite sure that it will be breaking changes without fallback, so maybe we should include both migration to 7.0.x and interfaces/implementation refactoring to the next release?

@ackintosh @wing328 Does it sounds right to you? Should I address both PRs to 4.0.0?

Thanks for your great work. It sounds good to me. ๐Ÿ‘

The php README still says "Requirements: PHP 5.5 and later"

@jacobweber good catch. Do you mind filing a PR to update it (template)?

So this issue is still out there. Any hopes of addressing it soon? 5 is long gone by now.

I tried using the phpLegacySupport options, but it seems to do nothing when using the php generator, despite actually producing more strongly typed code when using the php-symfony generator (see this)

EDIT: see #5480

Current progress of migration to PHP 7.x:

| generator | README.md | composer.json | @phpdoc |
|-----------------:|:---------------:|:-----------------:|:-----------:|
|php-client | โœ… | โœ… | โœ… |
|php-laravel | โœ… | โœ… | โœ… |
|php-lumen | โœ… | โœ… | โœ… |
|php-slim | โœ… | โœ… | โœ… |
|php-slim4 | โœ… | โœ… | โœ… |
|php-symfony | โœ… | โœ… | โœ… |
|php-ze-ph | โœ… | โœ… | โœ… |

Was this page helpful?
0 / 5 - 0 ratings