php-config(1)

πŸ“¦ version 8.3.36, in arch rolling

πŸ’… php-config β€” the little script that spills all of PHP's tea πŸ’…

okay so picture this: you're deep in a php-config(1) situation and you just need to know how the PHP on this machine was built. bestie, this page is your new best friend 🫢


✨ NAME ✨

php-config β€” get information about PHP configuration and compile options. that's it, that's the whole job, and it does it flawlessly πŸ’–


🌸 SYNOPSIS 🌸

php-config [options]

πŸ¦‹ DESCRIPTION πŸ¦‹

php-config is a simple shell script for obtaining information about installed PHP configuration. no cap β€” it's literally just a lil script, but it's a main character script 😌✨


πŸŽ€ OPTIONS πŸŽ€

  • --prefix β€” the directory prefix where PHP is installed, e.g. /usr/local
  • --includes β€” a list of -I options with all include files. the whole squad of include paths, together πŸ’…
  • --ldflags β€” the LD Flags which PHP was compiled with
  • --libs β€” the extra libraries which PHP was compiled with
  • --man-dir β€” the directory prefix where the manpages is installed
  • --extension-dir β€” the directory where extensions are searched by default
  • --include-dir β€” the directory prefix where header files are installed by default
  • --php-binary β€” full path to the php CLI or CGI binary
  • --php-sapis β€” show all SAPI modules available
  • --configure-options β€” the configure options to recreate the configuration of the current PHP installation. it's giving "receipts for the whole build" 🧾
  • --version β€” PHP version
  • --vernum β€” PHP version as integer

πŸ‘‘ SEE ALSO πŸ‘‘

php(1) β€” go say hi, they're literally siblings πŸ’œ


⭐ VERSION INFORMATION ⭐

this manpage describes php, version 8.3.36.


Copyright Β© The PHP Group

This source file is subject to version 3.01 of the PHP license, that is bundled with this package in the file LICENSE, and is available through the world-wide-web at the following url:

https://www.php.net/license/3_01.txt

If you did not receive a copy of the PHP license and are unable to obtain it through the world-wide-web, please send a note to license@php.net so we can mail you a copy immediately. (yes, actual email, actual human, they're very sweet about it πŸ“)


okay that's the whole page, you ate that πŸ’… sign-off time: this masterpiece is brought to you by The PHP Group, dated 2024, and the page itself is the php-config(1) situation we've been living in this whole time. mwah, go configure something iconic βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from