Registry / utility / bartlett-php-compatinfo

bartlett-php-compatinfo

JSON →
library7.2.6phppackagistunverified

Find out the minimum version and the extensions required for a piece of code to run.

composer require bartlett/php-compatinfo
INSTALL
IMPORT
SIG · BARTLETT-PHP-COMPA
B
bartlett-php-compatinfo
utilityphpv7.2.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CompatInfo
use Bartlett\CompatInfo\CompatInfo;

Analyze code for PHP version and extension requirements

use Bartlett\CompatInfo\CompatInfo; $compatInfo = new CompatInfo(); $result = $compatInfo->analyse('path/to/code'); echo $result->getMinVersion();
Debug
Known issues
gotchaAnalysis can be slow on large codebases
fix
Use --progress option or limit scope with --path
affects: >=7.0
Upgrade
Version history
7.2.6latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
37 hits · last 30 days
node
30
OpenAI (training)
2
Meta
1
Resources
bartlett-php-compatinfo — pip install bartlett-php-compatinfo · libregistry