From 1f92254b4dc0dcbe69f44a193d2e68d024fbc483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Djupsj=C3=B6backa?= Date: Wed, 17 Jan 2024 18:43:44 +0200 Subject: [PATCH] Add link to PHP Extensions Repository for Windows DLLs --- README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9cb660a..8a54669 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,9 @@ PHP implementations like [this](https://github.com/SoftCreatR/JSONPath), [this]( ## Installation -### Option 1: Build using PECL +### Linux and macOS + +#### Option 1: Build using PECL ```bash $ pecl install jsonpath @@ -30,7 +32,7 @@ $ pecl install jsonpath For more instructions on how to use PECL, [see the PECL documentation](https://www.php.net/manual/en/install.pecl.php). -### Option 2: Build manually +#### Option 2: Build manually Clone this repository to the directory of your choice, then run: @@ -42,7 +44,7 @@ $ TEST_PHP_ARGS="-q" make test $ sudo make install ``` -### Enable the extension +#### Enable the extension ```bash $ sudo touch /etc/php.d/jsonpath.ini @@ -56,6 +58,14 @@ If you're running PHP with the PHP-FPM service, restart it for the changes to ta $ sudo service php-fpm restart ``` +### Windows + +For pre-built Windows DLLs, see the [PHP Extensions Repository](https://phpext.phptools.online/extension/tools-and-utilities/jsonpath-308). + +Remember to add `extension=jsonpath` to your php.ini in order to enable the extension. + +For more instructions on installing PHP extensions, [see the PECL documentation](https://www.php.net/manual/en/install.pecl.windows.php). + ## Usage ```php