PHPCOMPATINFO(1)

πŸ“¦ version 7.2.6, in fedora 43, fedora 44

πŸ’– 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 (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