An open API service indexing awesome lists of open source software.

https://github.com/amnuts/php-compatibility-checker

A simple docker container and script to check the compatibility of code with PHP 8.2
https://github.com/amnuts/php-compatibility-checker

compatibility docker php

Last synced: 3 months ago
JSON representation

A simple docker container and script to check the compatibility of code with PHP 8.2

Awesome Lists containing this project

README

          

This repo provides an easy way to run the [phpcompatibility/php-compatibility](https://github.com/PHPCompatibility/PHPCompatibility) tool against any directory/project without having to update the dependencies there. This is handy if you have a lot of projects you might need to check for any issues when going to PHP 8.2.

First build the docker image:

```bash
docker build -t php-compatibility-checker .
```

Then you can use the `runon` script to start the the check on the docker container. The path supplied can be relative or absolute, and works to check that single location for all the PHP files not excluded by the ignore rules in the script:

```bash
./runon.sh ../../path/to/your/php/files
```

or:

```bash
./runon.sh /path/to/your/php/files
```