phpize
./configure --with-openssl-dir=/usr/local/opt/openssl@1.1 --enable-openssl
make && sudo make install
phpize
./configure --with-openssl-dir=/usr/local/opt/openssl@1.1 --enable-openssl
make && sudo make install