Skip to content

Commit 0a883b9

Browse files
committed
Add json path implementation to access objects
A json path implementation to be able to process advanced queries in templates. This will allow us to create complex queries to filter objects from the phpDocumentor AST and render them into templates.
0 parents  commit 0a883b9

24 files changed

+4077
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vendor/*

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2010 Mike van Riel
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

composer.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "phpdocumentor/json-path",
3+
"description": "Access php objects with json path expressions",
4+
"type": "library",
5+
"license": "MIT",
6+
"autoload": {
7+
"psr-4": {
8+
"phpDocumentor\\JsonPath\\": "src/"
9+
}
10+
},
11+
"autoload-dev": {
12+
"psr-4": {
13+
"phpDocumentor\\JsonPath\\": "tests/unit"
14+
}
15+
},
16+
"authors": [
17+
{
18+
"name": "jaapio",
19+
"email": "[email protected]"
20+
}
21+
],
22+
"require": {
23+
"php": "7.4|8.0.*|8.1.*",
24+
"parsica-php/parsica": "^0.8.1",
25+
"symfony/property-access": "^5.4"
26+
},
27+
"require-dev": {
28+
"phpunit/phpunit": "^9.5"
29+
},
30+
"config": {
31+
"platform": {
32+
"php": "7.4"
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)