Check your PHP project's PHP extension requirements against all loaded PHP extensions.
Go to file
2022-05-25 12:13:13 +02:00
.vscode Base Application 2021-05-08 23:09:48 +02:00
bin Update to current state and PHP 8.1 2022-05-25 12:10:23 +02:00
config Add PHPCS & PHPStan 2021-05-09 00:50:26 +02:00
docker Update to current state and PHP 8.1 2022-05-25 12:10:23 +02:00
src Update to current state and PHP 8.1 2022-05-25 12:10:23 +02:00
tests Update to current state and PHP 8.1 2022-05-25 12:10:23 +02:00
.gitignore Update to current state and PHP 8.1 2022-05-25 12:10:23 +02:00
box.json Update to current state and PHP 8.1 2022-05-25 12:10:23 +02:00
composer.json Update to current state and PHP 8.1 2022-05-25 12:10:23 +02:00
composer.lock Update to current state and PHP 8.1 2022-05-25 12:10:23 +02:00
CONTRIBUTING.md Update to current state and PHP 8.1 2022-05-25 12:10:23 +02:00
docker-compose.yaml Add PHP7.2, 8.0 containers 2021-05-09 00:49:47 +02:00
LICENSE.md Update Readme 2021-05-09 23:23:12 +02:00
phpcs.xml Add PHPCS & PHPStan 2021-05-09 00:50:26 +02:00
phpstan.neon Add PHPCS & PHPStan 2021-05-09 00:50:26 +02:00
phpunit.xml Update to current state and PHP 8.1 2022-05-25 12:10:23 +02:00
README.md Add Contribution link 2022-05-25 12:13:13 +02:00

php-extension-check

Check your PHP project's PHP extension requirements against all loaded PHP extensions.

Requires a PHP version of 7.2 or above.

The idea behind this project is to have an idea of your project's requirements for a minimal server installation.

Another use case can be cleaning up old legacy projects using the same server configuration/installation for decades after doing some refactorings or upgrades, esp. when moving those projects into Docker images.

Installation

... todo, when any releases are ready

Usage

To check your code, simply run the extension-check.phar.

The tool automatically executes the checks for the current directory (./).

Important

Please note that your command line and web server PHP configurations (php.ini files) may load different PHP extensions!

To use a specific php.ini file, run the tool like this:

php -c path/to/your/webserver/php.ini ./extension-check.phar

Checking a specific Directory

If you want to check a specific directory, you can specify it as an argument:

./extension-check.phar ./src

Note: You should include your vendor files, if any, for valid results.

Exclude Extensions

If you want to exclude some PHP extensions, you can use the --exclude option:

./extension-check.phar --exclude=core,standard,xdebug

or alternatively

./extension-check.phar --exclude=core --exclude=standard --exclude=xdebug

Contributions

See CONTRIBUTING.md