forked from bandwidth-throttle/token-bucket
-
Notifications
You must be signed in to change notification settings - Fork 1
/
composer.json
77 lines (77 loc) · 2.6 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"name": "securepoint/token-bucket",
"type": "library",
"description": "Implementation of the Token Bucket algorithm.",
"keywords": ["token bucket", "bandwidth", "rate limit", "throttle", "throttling", "rate limiting"],
"homepage": "https://github.com/securepoint/token-bucket",
"license": "WTFPL",
"authors": [
{
"name": "Markus Malkusch",
"email": "[email protected]",
"homepage": "http://markus.malkusch.de",
"role": "Developer"
},
{
"name": "Jan Wehner",
"email": "[email protected]",
"homepage": "https://securepoint.de",
"role": "Developer"
}
],
"autoload": {
"psr-4": {
"Securepoint\\TokenBucket\\": "src/",
"Securepoint\\TokenBucket\\Tests\\": "tests/"
}
},
"require": {
"php": "^8.1",
"malkusch/lock": "^2.2",
"ext-bcmath":"*"
},
"require-dev": {
"ext-pdo": "*",
"ext-memcached": "*",
"ext-redis": "*",
"predis/predis": "^2.2",
"phpunit/phpunit": "10.2.7",
"mikey179/vfsstream": "^1.6",
"php-mock/php-mock-phpunit": "^2.7",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-deprecation-rules": "^1.1",
"symplify/easy-coding-standard": "^12.0",
"symplify/coding-standard": "^12.0",
"rector/rector": "^0.18.4"
},
"suggest": {
"ext-pdo": "Requried to use the PDOStorage.",
"ext-redis": "Required to use the PHPRedisStorage.",
"ext-memcached": "Required to use the MemcachedStorage.",
"predis/predis": "Required to use the PredisStorage (^2.2)."
},
"archive": {
"exclude": ["/tests"]
},
"scripts": {
"cs": "@php vendor/bin/ecs check ",
"fs": "@php vendor/bin/ecs check --fix ",
"test": "@php ./vendor/bin/phpunit",
"rector": [
"Composer\\Config::disableProcessTimeout",
"@php -dmemory_limit=1G ./vendor/bin/rector --autoload-file=vendor/autoload.php"
],
"rector-all": [
"Composer\\Config::disableProcessTimeout",
"@php -dmemory_limit=1G ./vendor/bin/rector --autoload-file=vendor/autoload.php process src tests"
],
"phpstan": [
"Composer\\Config::disableProcessTimeout",
"@php -dmemory_limit=1G ./vendor/bin/phpstan analyse"
],
"phpstan-all": [
"Composer\\Config::disableProcessTimeout",
"@php -dmemory_limit=1G ./vendor/bin/phpstan analyse src tests"
]
}
}