Install Brotli PHP extension on RunCloud

# Set module name
MODULE_NAME="brotli"

# Set PHP version
PHPRC_VERSION="php74rc"

# Download extension
git clone --recursive --depth=1 https://github.com/kjdev/php-ext-brotli.git
cd php-ext-brotli

/RunCloud/Packages/$PHPRC_VERSION/bin/phpize
./configure --with-php-config=/RunCloud/Packages/$PHPRC_VERSION/bin/php-config
make
make install

# Add to php.ini
echo "extension=$MODULE_NAME.so" > /etc/$PHPRC_VERSION/conf.d/$MODULE_NAME.ini

# Restart PHP-FPM to take affect
systemctl reload $PHPRC_VERSION-fpm