-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcomposer.json
More file actions
66 lines (66 loc) · 1.99 KB
/
Copy pathcomposer.json
File metadata and controls
66 lines (66 loc) · 1.99 KB
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
{
"name": "phramework/jsonapi-example",
"description": "Example API using phramework's JSONAPI implementation",
"type": "project",
"license": "Apache-2.0",
"homepage": "https://phramework.github.io/",
"authors": [
{
"name": "Xenofon Spafaridis",
"email": "nohponex@gmail.com",
"homepage": "https://nohponex.gr"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=7",
"ext-pdo_sqlite": "*",
"phramework/phramework": "^1.3",
"phramework/jsonapi": "1.0.0-RC19",
"phramework/basic-authentication": "^0.0.0"
},
"require-dev": {
"squizlabs/php_codesniffer": "*",
"phramework/testphase": "^1.2",
"phpunit/phpunit": "^6.1",
"phpdocumentor/phpdocumentor": "2.*",
"league/commonmark": "^0.15.4"
},
"autoload": {
"psr-4": {
"Phramework\\Examples\\JSONAPI\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Phramework\\Examples\\JSONAPI\\Test\\": "tests/APP"
}
},
"scripts": {
"lint": "./vendor/bin/phpcs -p -s --standard=PSR2 ./src ./tests ./*.php ./tools",
"run": [
"echo \"\nStarting web server at http://localhost:8004 ...\n\"",
"php -S localhost:8004 -t ./public/&"
],
"test": [
"composer check-syntax",
"./vendor/bin/phpunit",
"composer testphase"
],
"check-syntax": [
"find src/ -name '*.php' -print0 | xargs -0 -L 1 php -l",
"find tests/ -name '*.php' -print0 | xargs -0 -L 1 php -l",
"find tools/ -name '*.php' -print0 | xargs -0 -L 1 php -l",
"find ./ -maxdepth 1 -name '*.php' -print0 | xargs -0 -L 1 php -l"
],
"testphase": "php ./vendor/bin/testphase -d ./tests/testphase -b ./tests/testphase/bootstrap.php -i -v",
"testphase-report": "./vendor/bin/testphase-report --dir ./tests/testphase --out ./build/testphase",
"doc": [
"phpdoc -d ./src -t ./doc/code"
]
},
"suggests": {
"ext-xdebug": "xdebug is suggested, for following best development and debug practices"
}
}