Skip to content

Define PHP version support policy #3

@felixarntz

Description

@felixarntz

With this being a PHP ecosystem project not tied to WordPress, we should discuss which PHP versions we want to support.

I think a reasonable starting point for the discussion is:

  • We could decide to always back-support until the minimum required PHP version that WordPress Core uses, in alignment with that project. Currently that's PHP 7.2.
  • That said, that minimum requirement is vastly out of date and not aligned with the majority of the PHP ecosystem. At the same time, one might argue that the official PHP version support policy is so fast in marking PHP versions as stale that it's unrealistic for a project that is built with WordPress usage in mind to follow suit. Only PHP 8.4 and 8.3 are actively supported.

I think we should review individual PHP versions and the potential benefits that using paradigms only introduced in them would have on this project. Then we can have a nuanced discussion on whether these benefits are worth not supporting older PHP versions.

Most likely, the biggest jump in new language features happened between PHP 7.4 and PHP 8.0.

Let's discuss.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] DiscussionFor issues that are high-level and not yet ready to implement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions