HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

phpquery — PHP extension manager for Debian-based OSes. More information: <https://code.google.com/archive/p/ph

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandphpquerydebiancliphpextensionformanager
linux

Problem

How to use the phpquery command: PHP extension manager for Debian-based OSes. More information: <https://code.google.com/archive/p/phpquery/wikis/CommandLineInterface.wiki>.

Solution

phpquery — PHP extension manager for Debian-based OSes. More information: <https://code.google.com/archive/p/phpquery/wikis/CommandLineInterface.wiki>.

List available PHP versions:
sudo phpquery -V


List available SAPIs for PHP 7.3:
sudo phpquery -v {{7.3}} -S


List enabled extensions for PHP 7.3 with the cli SAPI:
sudo phpquery -v {{7.3}} -s {{cli}} -M


Check if the JSON extension is enabled for PHP 7.3 with the apache2 SAPI:
sudo phpquery -v {{7.3}} -s {{apache2}} -m {{json}}

Code Snippets

List available PHP versions

sudo phpquery -V

List available SAPIs for PHP 7.3

sudo phpquery -v {{7.3}} -S

List enabled extensions for PHP 7.3 with the cli SAPI

sudo phpquery -v {{7.3}} -s {{cli}} -M

Check if the JSON extension is enabled for PHP 7.3 with the apache2 SAPI

sudo phpquery -v {{7.3}} -s {{apache2}} -m {{json}}

Context

tldr-pages: linux/phpquery

Revisions (0)

No revisions yet.