-
Notifications
You must be signed in to change notification settings - Fork 2
/
composer.json
68 lines (68 loc) · 2.01 KB
/
composer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"name" : "piko/router",
"description" : "One of the fastest PHP router, using a radix trie to retrieve routes",
"keywords" : [
"micro-router",
"micro",
"router",
"radix"
],
"authors" : [{
"name" : "Sylvain Philip",
"homepage" : "https://www.sphilip.com",
"role" : "Developer"
}
],
"homepage" : "https://github.com/piko-framework/router",
"license" : "LGPL-3.0-or-later",
"require" : {
"php" : ">=7.1.0",
"piko/core": "^2.1"
},
"autoload" : {
"psr-4" : {
"Piko\\" : "src"
}
},
"autoload-dev" : {
"psr-4" : {
"bench\\" : "benchmark"
}
},
"require-dev" : {
"phpunit/phpunit" : "^9.5",
"squizlabs/php_codesniffer" : "^3.5",
"phpstan/phpstan": "^1.8",
"phpbench/phpbench" : "^1.1",
"nikic/fast-route": "^1.3",
"symfony/routing": "^5.3",
"symfony/config": "^5.3"
},
"scripts" : {
"test": [
"@phpunit",
"@phpcs",
"@phpstan"
],
"phpunit" : "phpunit",
"phpcs" : "phpcs --standard=vendor/piko/core/coding-standard src",
"phpstan" : "phpstan",
"phpbench" : "phpbench run --revs=10000 --report='extends:aggregate,break:[\"benchmark\"]'",
"phpbench5000" : "ROUTES=5000 phpbench run --revs=10000 --report='extends:aggregate,break:[\"benchmark\"]'",
"gen_image_1000": [
"@phpbenchtable",
"@gnuplot1000"
],
"gen_image_5000": [
"@phpbenchtable5000",
"@gnuplot5000"
],
"phpbenchtable" : "phpbench run --revs=10000 --report=table --output=gnuplotdata",
"phpbenchtable5000" : "ROUTES=5000 phpbench run --revs=10000 --report=table --output=gnuplotdata",
"gnuplot1000" : "gnuplot -e 'set title \"Routers match against 1000 routes\"; set output \"benchmark/img/bench_1000_routes.png\"' benchmark/scripts/bench.gnu",
"gnuplot5000" : "gnuplot -e 'set title \"Routers match against 5000 routes\"; set output \"benchmark/img/bench_5000_routes.png\"' benchmark/scripts/bench.gnu"
},
"config": {
"sort-packages": true
}
}