Skip to content

Commit

Permalink
Merge pull request #180 from supermetrics-public/chore/WindowsBuildDo…
Browse files Browse the repository at this point in the history
…cumentation

Add link to PHP Extensions Repository for Windows DLLs
  • Loading branch information
crocodele authored Jan 18, 2024
2 parents 04b5568 + 1f92254 commit 8e91eca
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@ 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
```

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:

Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 8e91eca

Please sign in to comment.