-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
composer.json
100 lines (100 loc) · 2.91 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"name": "mathematicator-core/calculator",
"description": "Advance PHP math calculator with complex operations.",
"keywords": [
"mathematicator",
"math",
"php"
],
"type": "library",
"license": "MIT",
"homepage": "https://github.com/mathematicator-core/calculator",
"authors": [
{
"name": "Jan Barášek",
"homepage": "https://baraja.cz"
}
],
"require": {
"php": "^8.0",
"brick/math": "^0.8.15 || ^0.9.0",
"mathematicator-core/engine": "^2.0 || ^3.0",
"mathematicator-core/numbers": "^2.1",
"mathematicator-core/tokenizer": "^2.1 || ^3.0",
"baraja-core/url": "^1.1",
"nette/application": "^3.0",
"nette/utils": "^3.0",
"nette/di": "^3.0",
"nette/caching": "^3.0",
"symfony/polyfill-php80": "^1.17"
},
"require-dev": {
"phpstan/phpstan": "^0.12.74",
"tracy/tracy": "^2.8",
"phpstan/phpstan-nette": "^0.12.14",
"spaze/phpstan-disallowed-calls": "^1.1",
"roave/security-advisories": "dev-master",
"jetbrains/phpstorm-attributes": "^1.0",
"brainmaestro/composer-git-hooks": "dev-master",
"nette/bootstrap": "^3.0",
"nette/tester": "~2.3.2 || ~2.4.0"
},
"suggest": {
"nette/caching": "(^3.0) To use package in Nette Framework",
"nette/di": "(^3.0) To use package in Nette Framework",
"ext-bcmath": "For faster math operations",
"ext-gmp": "Alternative for faster math operations"
},
"autoload": {
"psr-4": {
"Mathematicator\\Calculator\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Mathematicator\\Calculator\\Tests\\": "tests/CalculatorTests/"
}
},
"scripts": {
"post-install-cmd": "cghooks add --ignore-lock",
"post-update-cmd": "cghooks update",
"cs:install": [
"composer create-project nette/code-checker temp/code-checker ^3 --no-progress",
"composer create-project nette/coding-standard temp/coding-standard ^2 --no-progress"
],
"cs:check": [
"php temp/code-checker/code-checker -d src -d tests -d benchmarks --short-arrays --strict-types --no-progress",
"php temp/coding-standard/ecs check src tests benchmarks --config temp/coding-standard/coding-standard-php71.yml"
],
"cs:fix": [
"php temp/code-checker/code-checker -d src -d tests -d benchmarks --short-arrays --strict-types --fix --no-progress",
"php temp/coding-standard/ecs check src tests benchmarks --config temp/coding-standard/coding-standard-php71.yml --fix"
],
"phpstan": "vendor/bin/phpstan analyse src -c phpstan.neon --level 8 --no-progress",
"fix": [
"composer update",
"composer cs:fix",
"composer phpstan",
"composer test"
],
"test": "vendor/bin/tester -s -c tests/php.ini -p php tests --coverage coverage.xml --coverage-src src",
"cghooks": "vendor/bin/cghooks"
},
"minimum-stability": "stable",
"config": {
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "2.2.x-dev"
},
"hooks": {
"post-merge": "composer install",
"pre-commit": [
"composer cs:check",
"composer phpstan",
"composer test"
]
}
}
}