PHPCOMPATINFO(1)
π phpcompatinfo(1) π
okay bestie, sit DOWN, because phpcompatinfo(1) is about to become your new hyperfixation π it's a PHP library that parses literally any data source and tells you the minimum version and extensions you need for it to run. no cap. it's giving detective but make it PHP. πβ¨
β¨ SYNOPSIS β¨
phpcompatinfo [options] command [arguments]
π¦ DESCRIPTION π¦
so like, the phpcompatinfo(1) command parses any data source to find out the elements inside it β think classes, interfaces, functions, constants, namespaces. it's lowkey just snooping but in a helpful way π
πΈ OPTIONS πΈ
-h,--helpβ shows you this help message. classic. iconic. π«Ά-q,--quietβ do not output any message. silence. the vibe is muted. π€«-v|vv|v,--verboseβ turns up the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug. three whole levels of yapping, we love range π’-V,--versionβ display this application version. iykyk π·οΈ--ansiβ force ANSI output. colour me obsessed π--no-ansiβ disable ANSI output. boring era but okay π--profileβ display timing and memory usage information. the receipts, fr fr β±οΈ--progressβ show progress bar. watching it fill up is my main character moment π--outputβ write results to file. save it for later bestie πΎ--manifestβ show which versions of dependencies are bundled (PHAR version only). exclusive behaviour, only the PHAR girlies get this one π§
π₯ ANALYSER:RUN COMMAND π₯
the phpcompatinfo(1) analyser:run command is used to analyse a data source and display results. this is the moment. the whole point. β¨
Usage:
phpcompatinfo analyser:run source
Where:
sourceβ identify a data source π
π DB:LIST COMMAND π
the phpcompatinfo(1) db:list command is used to list all references supported. window shopping but for references ποΈ
Usage:
phpcompatinfo db:list [--all]
Where:
--allβ list all references. every single one. no gatekeeping π―
β DB:SHOW COMMAND β
the phpcompatinfo(1) db:show command is used to introspect a reference. get in there and look around, bestie π
Usage:
phpcompatinfo db:show [--releases] [--ini] [--constants] [--functions] [--interfaces] [--classes] [--methods] [--class-constants] name
Where:
nameβ introspection of a reference (case insensitive) π€--releasesβ show releases π¦--iniβ show ini Entries βοΈ--constantsβ show constants π--functionsβ show functions π§©--interfacesβ show interfaces π--classesβ show classes π«--methodsβ show methods π οΈ--class-constantsβ show class constants π
π EXIT STATUS π
0β success. we ate and left no crumbs π½οΈ1β failure (syntax or usage error; unexpected error). not the vibe, bestie π
π BUGS π
report any issue at https://github.com/llaville/php-compat-info/issues β please do, the maintainers are doing their best and they deserve the feedback π«Ά
π AUTHORS π
- PHP_CompatInfo was originally written by Davey Shafik in 2004. og legend behaviour π°οΈ
- Remi Collet, contributor of many extensions reference and unit tests, joined the project since version 2.0.0RC2. so many unit tests. so much dedication π
- The Command-Line Interface (CLI) version was introduced in version 2.0 and is written by Laurent Laville. the CLI glow-up we all needed β¨
π SEE ALSO π
main web site: http://bartlett.laurent-laville.org/php-compatinfo/ β go look, it's right there π¦
π COPYRIGHT π
Copyright (C) 2010-2021 Laurent Laville.
π LICENSE π
free use of this software is granted under the terms of the BSD 3-clause license. free free free, periodt π
and that's the whole page bestie!! this was version 6.0.0, dated 2021-03-14, and honestly? it ate. go parse something. mwah π«Άβ¨π
π¦ where this page comes from
- fedora 43: php-bartlett-PHP-CompatInfo 7.2.3-2.fc43 Β· BSD-3-Clause and MIT
- fedora 43: php-bartlett-PHP-CompatInfo 7.2.6-1.fc43 Β· BSD-3-Clause and MIT
- fedora 44: php-bartlett-PHP-CompatInfo 7.2.5-2.fc44 Β· BSD-3-Clause and MIT
- fedora 44: php-bartlett-PHP-CompatInfo 7.2.6-1.fc44 Β· BSD-3-Clause and MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms