-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcomposer.json
More file actions
56 lines (56 loc) · 1.88 KB
/
composer.json
File metadata and controls
56 lines (56 loc) · 1.88 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
{
"name": "guillermoandrae/php-dynamodb",
"description": "A PHP library that can be used to interact with Amazon DynamoDB",
"license": "MIT",
"require": {
"php": "^8.0",
"aws/aws-sdk-php": "^3.95",
"guillermoandrae/php-collection": "*"
},
"autoload": {
"psr-4": {
"Guillermoandrae\\": "src/"
}
},
"require-dev": {
"phpunit/phpunit": "^9.0",
"squizlabs/php_codesniffer": "^3.4",
"phpstan/phpstan": "^1.3"
},
"autoload-dev": {
"psr-4": {
"GuillermoandraeTest\\": "tests/"
}
},
"scripts": {
"start-db": [
"mkdir -p ./database",
"if [ ! -f ./database/dynamodb_local_latest.zip ]; then wget --directory-prefix=./database https://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.zip; fi",
"if [ ! -d ./database/DynamoDBLocal_lib ]; then unzip ./database/dynamodb_local_latest.zip -d database; fi",
"nohup java -Djava.library.path=./database/DynamoDBLocal_lib -jar ./database/DynamoDBLocal.jar -sharedDb &"
],
"stop-db": [
"kill -9 `pgrep -f DynamoDB`",
"rm -rf ./database",
"rm -f ./shared-local-instance.db"
],
"restart-db": [
"@stop-db",
"@start-db"
],
"check-style": [
"phpcbf --standard=PSR2 --extensions=php src tests",
"phpcs --standard=PSR2 --extensions=php src tests",
"phpstan analyse --configuration phpstan.neon.dist"
],
"test": [
"@check-style",
"phpunit --coverage-text --coverage-clover=./clover.xml"
],
"test-html": [
"@check-style",
"phpunit --coverage-text --coverage-html report",
"php -S localhost:8080 -t report/ > report/phpd.log 2>&1"
]
}
}