-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcomposer.json
62 lines (62 loc) · 2.75 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
{
"name": "ecmchow/ip-analyzer",
"description": "IP address intelligence service",
"version": "1.0.1",
"type": "project",
"license": "MIT",
"authors": [
{
"name": "Eric Chow",
"email": "[email protected]",
"homepage": "https://cmchow.com"
}
],
"config": {
"vendor-dir": "vendor"
},
"require": {
"php": ">=7.4",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"workerman/workerman": "^4.0",
"workerman/crontab": "^1.0",
"geoip2/geoip2": "^2.12",
"opis/json-schema": "^2.3"
},
"autoload": {
"psr-4": {
"Core\\": "Core"
}
},
"archive": {
"exclude": [".github", ".env", ".git", ".drone.yml", ".gitlab-ci.yml", ".php-cs-fixer.dist.php", "box.json", "phpunit.xml", "/dist", "/vendor", "/test", "/tools", "*.lock", "*.log", "*.mmdb"]
},
"scripts": {
"autoload": "@composer dump-autoload -o",
"ipsum": "curl --compressed -o blacklist/ipsum.txt https://raw.githubusercontent.com/stamparm/ipsum/master/ipsum.txt",
"build": "php tools/box.phar compile",
"pack": "@composer archive --dir dist --file ip-analyzer --format=zip",
"style-check": [
"php tools/php-cs-fixer-v3.phar fix Core --using-cache=no --diff --dry-run",
"php tools/php-cs-fixer-v3.phar fix start-analyzer.php --using-cache=no --diff --dry-run"
],
"style-fix": [
"php tools/php-cs-fixer-v3.phar fix Core --using-cache=no",
"php tools/php-cs-fixer-v3.phar fix start-analyzer.php --using-cache=no"
],
"test-unit": "php tools/phpunit-9.5.phar --testsuite core-units",
"test-e2e": "test/e2e/test-service.sh -u tools/phpunit-9.5.phar -o test/e2e.log -e start-analyzer.php -p no -c no",
"test-e2e:redis": "test/e2e/test-redis.sh -u tools/phpunit-9.5.phar -o test/e2e-redis.log -e start-analyzer.php -p no -c no",
"test-build": "test/e2e/test-service.sh -u tools/phpunit-9.5.phar -o test/build.log -e dist/ip-analyzer.phar -p yes -c no",
"test-build:redis": "test/e2e/test-redis.sh -u tools/phpunit-9.5.phar -o test/build-redis.log -e dist/ip-analyzer.phar -p yes -c no",
"ci-e2e": [
"test/e2e/test-service.sh -u tools/phpunit-9.5.phar -o test/e2e.log -e start-analyzer.php -p no -c yes",
"test/e2e/test-redis.sh -u tools/phpunit-9.5.phar -o test/e2e-redis.log -e start-analyzer.php -p no -c yes"
],
"ci-build": [
"test/e2e/test-service.sh -u tools/phpunit-9.5.phar -o test/build.log -e dist/ip-analyzer.phar -p yes -c yes",
"test/e2e/test-redis.sh -u tools/phpunit-9.5.phar -o test/build-redis.log -e dist/ip-analyzer.phar -p yes -c yes"
]
}
}