forked from phramework/examples-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
43 lines (43 loc) · 1.19 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
{
"name": "phramework/examples-api",
"description": "Simple API example using phramework",
"license": "Apache-2.0",
"homepage": "https://phramework.github.io/",
"type": "project",
"authors": [{
"name": "Xenofon Spafaridis",
"email": "nohponex@gmail.com",
"homepage": "https://nohponex.gr"
}],
"autoload": {
"psr-4": {
"Phramework\\Examples\\API\\": "src/"
}
},
"require": {
"php": ">=5.6",
"phramework/phramework": "^1.0.0"
},
"require-dev": {
"phpunit/phpunit": "5.*",
"squizlabs/php_codesniffer": "*",
"phramework/testphase": "dev-master"
},
"minimum-stability": "dev",
"prefer-stable": true,
"archive": {
"exclude": ["demo/", "examples/", "test/", "/*.test", "tests", "demo.php"]
},
"scripts": {
"test": [
"find src/ -name '*.php' -print0 | xargs -0 -L 1 php -l",
"find public/ -name '*.php' -print0 | xargs -0 -L 1 php -l",
"composer test-api"
],
"test-api": [
"testphase -i -d ./tests-api/ -b ./tests-api/bootstrap.php"
],
"lint": "phpcs -p -s --standard=PSR2 ./src",
"run": "(cd public; echo \"\nStarting web server at http://localhost:8000 ...\n\"; php -S localhost:8000 &)"
}
}