Repository navigation
Expand file tree
/
Copy pathcomposer.json
More file actions
77 lines (77 loc) · 2.17 KB
/
Copy pathcomposer.json
File metadata and controls
77 lines (77 loc) · 2.17 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
{
"name": "khaledalam/unit",
"description": "A lightweight, type-safe PHP library for units, quantities, and dimensional analysis with automatic conversion.",
"type": "library",
"license": "MIT",
"keywords": [
"units",
"unit-conversion",
"dimensional-analysis",
"measurement",
"quantity",
"quantities",
"physics",
"si-units",
"metric",
"imperial"
],
"homepage": "https://github.com/khaledalam/unit",
"support": {
"issues": "https://github.com/khaledalam/unit/issues",
"source": "https://github.com/khaledalam/unit"
},
"autoload": {
"psr-4": {
"KhaledAlam\\Unit\\Doctrine\\": "src/Doctrine",
"KhaledAlam\\Unit\\Laravel\\": "src/Laravel",
"KhaledAlam\\Unit\\": "src/Unit"
},
"files": [
"src/Unit/bootstrap.php"
]
},
"autoload-dev": {
"psr-4": {
"KhaledAlam\\Unit\\Tests\\": "tests"
}
},
"authors": [
{
"name": "Khaled Alam",
"email": "khaledalam.net@gmail.com",
"homepage": "https://khaledalam.net"
}
],
"require": {
"php": "^8.2"
},
"require-dev": {
"doctrine/dbal": "^4.0",
"friendsofphp/php-cs-fixer": "^3.64",
"illuminate/database": "^11.0 || ^12.0",
"phpstan/phpstan": "^2.0",
"phpunit/phpunit": "^11.4"
},
"suggest": {
"illuminate/database": "For the Laravel service provider and Eloquent 'AsQuantity' cast.",
"doctrine/dbal": "For the Doctrine 'QuantityType' (usable in Symfony and any Doctrine project)."
},
"scripts": {
"test": "phpunit --configuration phpunit.xml.dist --testsuite=unit",
"analyse": "phpstan analyse",
"cs": "php-cs-fixer fix --dry-run --diff",
"cs-fix": "php-cs-fixer fix"
},
"extra": {
"laravel": {
"providers": [
"KhaledAlam\\Unit\\Laravel\\UnitServiceProvider"
]
}
},
"config": {
"sort-packages": true
},
"minimum-stability": "stable",
"prefer-stable": true
}