php-config(1)

πŸ“¦ version 8.4.27, in alpine 3.24

πŸŽ€ php-config β€” get information about PHP configuration and compile options πŸŽ€

okay so bestie, real talk: this is the php-config(1) manual page, and it's honestly one of the most lowkey useful little scripts in the whole PHP ecosystem. it's giving "quiet luxury" β€” no drama, just answers.


✨ SYNOPSIS ✨

php-config [options]

like, you just run it, optionally with one of the flags below, and it tells you things. that's the whole vibe. πŸ’…


🌸 DESCRIPTION 🌸

so php-config is a simple shell script β€” yes, a shell script, not some big compiled binary, not a whole daemon, just a lil script β€” for obtaining information about installed PHP configuration. basically it's the friend who actually knows where everything is and will tell you without making it weird. 🫢


πŸ’– OPTIONS πŸ’–

here's the full menu, no cap, every single one:

  • --prefix β€” Directory prefix where PHP is installed, e.g. /usr/local
  • --includes β€” List of -I options with all include files
  • --ldflags β€” LD Flags which PHP was compiled with
  • --libs β€” Extra libraries which PHP was compiled with
  • --man-dir β€” The directory prefix where the manpages is installed
  • --extension-dir β€” Directory where extensions are searched by default
  • --include-dir β€” Directory prefix where header files are installed by default
  • --lib-dir β€” Directory where libraries are installed by default
  • --lib-embed β€” PHP embed library name
  • --php-binary β€” Full path to php CLI or CGI binary
  • --php-sapis β€” Show all SAPI modules available
  • --configure-options β€” Configure options to recreate configuration of current PHP installation
  • --ini-path β€” Directory from which PHP reads its INI configuration file (php.ini)
  • --ini-dir β€” Directory from which PHP scans for additional INI configuration files
  • --version β€” PHP version
  • --vernum β€” PHP version as integer
ngl the --configure-options one is the main character here β€” it literally hands you the configure options to recreate the configuration of your current PHP installation. iconic for debugging builds. πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

php(1) β€” the big sibling. go say hi.


🌈 VERSION INFORMATION 🌈

This manpage describes php, version 8.4.27. slay. ✨


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.


and that's the tea β˜• β€” The PHP Group, 2024, php-config(1). periodt. πŸ’…πŸŽ€

πŸ“¦ where this page comes from
  • alpine 3.24: php84-doc 8.4.27-r0 Β· PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms