stevegrunwell / php-compatibility

Test a package's compatibility with different versions of PHP.

Home Page:https://hub.docker.com/repository/docker/stevegrunwell/php-compatibility

Repository from Github https://github.comstevegrunwell/php-compatibilityRepository from Github https://github.comstevegrunwell/php-compatibility

PHP Compatibility

This Docker image is designed to safely download, extract, and analyze PHP packages using the PHP Compatibility ruleset for PHP_CodeSniffer.

Usage

The container has one goal: to download an archive of a package, safely extract it, then report if anything is incompatible with the target version(s) of PHP.

# Check against the Akismet WordPress plugin.
$ docker run --rm -it stevegrunwell/php-compatibility \
  https://downloads.wordpress.org/plugin/akismet.4.1.3.zip

# Verify that a package doesn't have issues with PHP 7.4
$ docker run --rm -it stevegrunwell/php-compatibility \
  https://example.com/some-package.zip --php=7.4

Specifying the PHP version

By default, this tool will check for anything that might prevent the given package from being run on PHP 7.x (e.g. --php=7.0-), but the --php option will let you change the testVersion configuration for the PHP Compatibility ruleset.

About

Test a package's compatibility with different versions of PHP.

https://hub.docker.com/repository/docker/stevegrunwell/php-compatibility

License:MIT License


Languages

Language:Shell 83.9%Language:Dockerfile 16.1%