/
composer.json
46 lines (45 loc) · 1.39 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
{
"name": "caseyamcl/toc",
"type": "library",
"description": "Simple Table-of-Contents Generator for PHP. Generates TOCs based off H1...H6 tags",
"keywords": ["table of contents", "toc"],
"homepage": "https://github.com/caseyamcl/toc",
"license": "MIT",
"authors":
[
{
"name": "Casey McLaughlin",
"email": "caseyamcl@gmail.com",
"homepage": "https://caseymclaughlin.com",
"role": "Developer"
}
],
"autoload": {
"psr-4": {
"TOC\\": ["src", "tests"]
}
},
"require": {
"php": "^7.2|^8.0",
"ext-dom": "*",
"masterminds/html5": "^2.1",
"cocur/slugify": "^3.0|^4.0",
"knplabs/knp-menu": "^3.2"
},
"require-dev": {
"twig/twig": "^2.4|^3.0",
"phpunit/phpunit": "^7.5|^8.0|^9.0",
"squizlabs/php_codesniffer": "^3.5",
"phpstan/phpstan": "^1.4",
"jaschilz/php-coverage-badger": "^2.0"
},
"scripts": {
"test": " XDEBUG_MODE=coverage vendor/bin/phpunit; vendor/bin/php-coverage-badger build/logs/clover.xml ./coverage.svg",
"check-style": "phpcs -p --standard=PSR12 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests",
"fix-style": "phpcbf -p --standard=PSR12 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests",
"phpstan": "vendor/bin/phpstan analyse -l 5 src tests"
},
"config": {
"sort-packages": true
}
}