-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcomposer.json
More file actions
87 lines (87 loc) · 3.09 KB
/
composer.json
File metadata and controls
87 lines (87 loc) · 3.09 KB
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
{
"name": "faerber/pdf-to-zpl",
"description": "Convert a PDF file to a ZPL file",
"type": "library",
"license": "MIT",
"keywords": ["zebra-printers", "pdf", "zpl"],
"homepage": "https://github.com/benfaerber/pdf-to-zpl",
"autoload": {
"psr-4": {
"Faerber\\PdfToZpl\\": "src/"
}
},
"authors": [
{
"name": "Ben Faerber",
"email": "faerberbendev@protonmail.com"
}
],
"require": {
"guzzlehttp/guzzle": "^7.9",
"psr/log": "^3.0",
"monolog/monolog": "^3.9",
"illuminate/collections": "^12.36"
},
"extra": {
"examples-dir": "example"
},
"scripts": {
"test": [
"./vendor/bin/phpunit tests --verbose --bootstrap \"tests/TestUtils.php\""
],
"test:coverage": [
"XDEBUG_MODE=coverage ./vendor/bin/phpunit tests --verbose --bootstrap \"tests/TestUtils.php\" --coverage-html coverage"
],
"view:coverage": [
"open coverage/index.html"
],
"test:coverage-view": [
"XDEBUG_MODE=coverage ./vendor/bin/phpunit tests --verbose --bootstrap \"tests/TestUtils.php\" --coverage-html coverage",
"open coverage/index.html"
],
"benchmark": [
"php vendor/bin/phpbench run --report=main_report --output=html_report"
],
"format": [
"PHP_CS_FIXER_IGNORE_ENV=true ./vendor/bin/php-cs-fixer fix ."
],
"check-format": [
"PHP_CS_FIXER_IGNORE_ENV=true ./vendor/bin/php-cs-fixer check"
],
"analyze": [
"./vendor/bin/phpstan analyze -c ./phpstan.neon"
],
"phpstan": [
"./vendor/bin/phpstan analyze -c ./phpstan.neon"
],
"verify": [
"composer check-format",
"composer analyze",
"composer test"
],
"run-example": [
"php example/example.php"
],
"generate-test-data": [
"php example/generateTestData.php"
]
},
"scripts-descriptions": {
"test": "Run the unit tests with phpunit",
"test:coverage": "Run the unit tests with code coverage and generate an HTML report in the coverage directory",
"benchmark": "Benchmark the speed of the library and generate an HTML output report using phpbench",
"format": "Use php-cs-fixer to format the source",
"check-format": "Verify the source is properly formatted",
"analyze": "Statically analyze the source with phpstan",
"phpstan": "Statically analyze the source with phpstan",
"verify": "Go through all the processes Github actions does, so you can verify it will pass",
"run-example": "Run a simple example",
"generate-test-data": "Regenerate the comparision data used for unit testing. Be sure to visually inspect the generated data and ensure its valid!"
},
"require-dev": {
"phpunit/phpunit": "^9",
"phpbench/phpbench": "^1.3",
"friendsofphp/php-cs-fixer": "^3.66",
"phpstan/phpstan": "^2.1"
}
}