Skip to content

Add PHP 7.4 support and set as default#27

Merged
joehoyle merged 2 commits into
masterfrom
copilot/fix-26
Aug 20, 2025
Merged

Add PHP 7.4 support and set as default#27
joehoyle merged 2 commits into
masterfrom
copilot/fix-26

Conversation

Copilot AI commented Aug 20, 2025

Copy link
Copy Markdown
Contributor

This PR adds support for PHP 7.4 to the plugin-tester Docker images and sets it as the new default version for both the latest tag and WordPress-only tags.

Changes Made

Added PHP 7.4 Support:

  • Created Dockerfile.php7.4 using Alpine 3.13 with PHP 7.4 packages
  • Updated GitHub Actions workflow to include PHP 7.4 in the build matrix
  • Now builds 45 total image combinations (9 WordPress versions × 5 PHP versions)

Set PHP 7.4 as Default:

  • Changed the latest tag to use WordPress 6.8 with PHP 7.4 (previously PHP 8.0)
  • Updated WordPress-only tags (e.g., wp-6.8, wp-6.7) to default to PHP 7.4
  • Users can still access specific PHP versions using explicit tags like wp-6.8-php8.3

Updated Documentation:

  • Updated README to reflect PHP 7.4 support and new default behavior
  • Changed examples to show PHP 7.4 as the default
  • Maintained clear documentation about available PHP versions (7.4, 8.0, 8.1, 8.2, 8.3)

Usage Examples

# Uses latest WordPress (6.8) with PHP 7.4 (new default)
docker run --rm -v "$PWD:/code" humanmade/plugin-tester

# WordPress-only tag now defaults to PHP 7.4
docker run --rm -v "$PWD:/code" humanmade/plugin-tester:wp-6.8

# Specific PHP versions still available
docker run --rm -v "$PWD:/code" humanmade/plugin-tester:wp-6.8-php8.3

The implementation maintains full backward compatibility - all existing specific version tags continue to work exactly as before. Only the default behavior has changed to use PHP 7.4 instead of PHP 8.0.

Fixes #26.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: joehoyle <161683+joehoyle@users.noreply.github.com>
@joehoyle joehoyle marked this pull request as ready for review August 20, 2025 16:16
Copilot AI changed the title [WIP] Add PHP 7.4 and set as default Add PHP 7.4 support and set as default Aug 20, 2025
Copilot AI requested a review from joehoyle August 20, 2025 16:20
@joehoyle joehoyle merged commit 58501fa into master Aug 20, 2025
90 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add PHP 7.4 and set as default

2 participants