You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# JSONPath for PHP 5.4 - 7.0 [](./LICENSE)
8
2
9
3
This is a [JSONPath](http://goessner.net/articles/JsonPath/) implementation for PHP based on Stefan Goessner's JSONPath script.
10
4
@@ -16,22 +10,20 @@ This project aims to be a clean and simple implementation with the following goa
16
10
- Expressions are parsed into tokens using code inspired by the Doctrine Lexer. The tokens are cached internally to avoid re-parsing the expressions.
17
11
- There is no `eval()` in use
18
12
- Any combination of objects/arrays/ArrayAccess-objects can be used as the data input which is great if you're de-serializing JSON in to objects or if you want to process your own data structures.
13
+
14
+
🔻 **Please note, that this branch (based on JSONPath 0.7.2) is protected. There are no intentions to make any updates here. Please consider upgrading to PHP 7.1 or newer.**
19
15
20
16
## Installation
21
17
22
-
**PHP 7.1+**
18
+
**PHP >= 7.1+**
23
19
```bash
24
20
composer require softcreatr/jsonpath
25
21
```
26
22
27
23
**PHP < 7.1**
28
24
29
-
Support for PHP < 7.1 has been dropped. However, legacy branches exist for PHP 5.6 and 7.0 and can be composer-installed as follows:
30
-
31
-
* PHP 7.0: `"softcreatr/jsonpath": "dev-php-70"`
32
-
* PHP 5.6: `"softcreatr/jsonpath": "dev-php-56"`
33
-
34
-
🔻 Please note, that these legacy branches (based on JSONPath 0.6.2) are protected. There are no intentions to make any updates here. Please consider upgrading to PHP 7.1 or newer.
25
+
1. Add to the `require`-section of your composer.json: `"softcreatr/jsonpath": "dev-oldphp"`
26
+
2. Execute `composer install`
35
27
36
28
## JSONPath Examples
37
29
@@ -137,39 +129,6 @@ So here are the types of query expressions that are supported:
137
129
138
130
Other / Similar implementations can be found in the [Wiki](https://github.com/SoftCreatR/JSONPath/wiki/Other-Implementations).
139
131
140
-
## Changelog
141
-
142
-
A list of changes can be found in the [CHANGELOG.md](CHANGELOG.md) file.
0 commit comments