dg / php-extensions-finder
Finds PHP extensions required by code.
Installs: 363
Dependents: 0
Suggesters: 0
Security: 0
Stars: 39
Watchers: 11
Forks: 2
Open Issues: 0
Type:project
Requires
- php: >=5.4.0
- nette/command-line: ~1.0
- nette/finder: ^2.3
- nikic/php-parser: ^2.0 || ^3.0 || ^4.0
This package is auto-updated.
Last update: 2024-10-30 01:42:48 UTC
README
This tool finds which PHP extensions are required by source code.
Usage
php-extensions-finder [<path>]
It generates result like:
{
"require": {
"ext-json": "*",
"ext-tokenizer": "*",
"ext-gd": "*",
"ext-openssl": "*",
"ext-iconv": "*",
"ext-mbstring": "*"
}
}
Installation
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?