Finds PHP extensions required by code.

v2.1 2018-04-02 18:34 UTC

This package is auto-updated.

Last update: 2024-06-30 00:58:07 UTC


PHP Extensions Finder for Composer

This tool finds which PHP extensions are required by source code.


php-extensions-finder [<path>]

It generates result like:

	"require": {
		"ext-json": "*",
		"ext-tokenizer": "*",
		"ext-gd": "*",
		"ext-openssl": "*",
		"ext-iconv": "*",
		"ext-mbstring": "*"


It requires PHP 8.0 or newer.

Install it via Composer. This project is not meant to be run as a dependency, so install it as standalone:

composer create-project dg/php-extensions-finder

Or install it globally via:

composer global require dg/php-extensions-finder

and make sure your global vendor binaries directory is in your $PATH environment variable.

Support Project

Do you like PHP Extensions Finder? Are you looking forward to the new features?