diff --git a/README.md b/README.md index 5781eea..4e407d9 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,11 @@ of your php version. It might look as follows. ```shell PHP_VERSION=`php -r "echo PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION;"` PHP_EXTENSION_DIR=`php -r "echo ini_get('extension_dir');"` + +# download the extension file into the extension dir curl -o "${PHP_EXTENSION_DIR}/libphp_ext_fs_notify.so" "https://github.com/genkgo/php-ext-fs-notify/releases/latest/download/linux-php${PHP_VERSION}-libphp_ext_fs_notify.so" + +# enable the extension echo 'extension=libphp_ext_fs_notify.so' > /etc/php/${PHP_VERSION}/cli/conf.d/20-libphp_ext_fs_notify.ini ```