forked from DavidGoodwin/RateLimit
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcomposer.json
53 lines (53 loc) · 1.55 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
{
"type": "library",
"name": "detain/rate-limit",
"description": "PHP rate limiting library with Token Bucket and Leaky Bucket Algorithms, based on palepurple/rate-limit, grandson to touhonoob/rate-limit, and jeroenvisser101/LeakyBucket",
"keywords": ["ratelimit", "throttling", "limits", "tokenbucket", "leakybucket"],
"require": {
"php": ">=5.6"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"php-parallel-lint/php-parallel-lint": "^1.0",
"jakub-onderka/php-parallel-lint": "^1.0",
"php-coveralls/php-coveralls": "^2.2",
"phpunit/phpunit": ">=7.0",
"predis/predis": "^1.1",
"psr/cache": "^1.0",
"tedivm/stash": "^0.16",
"vimeo/psalm": "*",
"phpstan/phpstan": "*"
},
"suggest": {
"tedivm/stash": "^0.15",
"predis/predis": "^1.1",
"ext-redis": "^2.2",
"ext-apcu": "^4.0"
},
"license": "MIT",
"authors": [
{
"name": "Joe Huss",
"email": "[email protected]"
}
],
"autoload": {
"psr-4": {
"Detain\\RateLimit\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Detain\\RateLimit\\Tests\\": "tests/"
}
},
"scripts": {
"build" : [ "@lint", "@check-format", "@psalm", "@phpstan", "@test" ],
"psalm" : "@php ./vendor/bin/psalm src",
"phpstan" : "@php vendor/bin/phpstan analyse --level 6 src",
"lint": "@php ./vendor/bin/parallel-lint --exclude vendor/ .",
"check-format": "@php ./vendor/bin/php-cs-fixer fix --ansi --dry-run --diff",
"format": "@php ./vendor/bin/php-cs-fixer fix --ansi",
"test": "@php ./vendor/bin/phpunit"
}
}