phpenmod

Enable PHP extensions on Debian-based OSes. More information: <https://salsa.debian.org/php-team/php-defaults>.

Install

All systems
curl cmd.cat/phpenmod.sh
Debian Debian
apt-get install php-common
Ubuntu
apt-get install php-common
Alpine
apk add php-common
image/svg+xml Kali Linux
apt-get install php-common
CentOS
yum install php-common
Fedora
dnf install php-common
Windows (WSL2)
sudo apt-get update sudo apt-get install php-common
Raspbian
apt-get install php-common
Docker
docker run cmd.cat/phpenmod phpenmod powered by Commando

Enable PHP extensions on Debian-based OSes. More information: <https://salsa.debian.org/php-team/php-defaults>.

  • Enable the JSON extension for every SAPI of every PHP version:
    sudo phpenmod json
  • Enable the JSON extension for PHP 7.3 with the cli SAPI:
    sudo phpenmod -v 7.3 -s cli json

© tl;dr; authors and contributors