Skip to content

Commit f21b7be

Browse files
author
david_smith
committed
Update composer.json.
1 parent 1baed89 commit f21b7be

File tree

1 file changed

+43
-10
lines changed

1 file changed

+43
-10
lines changed

composer.json

Lines changed: 43 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
"type": "library",
32
"name": "zero-to-prod/data-model",
43
"description": "Transforms Data into Type-Safe DTOs.",
4+
"license": "MIT",
5+
"type": "library",
56
"keywords": [
67
"zero-to-prod",
78
"DataModel",
@@ -13,17 +14,41 @@
1314
"Data_Model",
1415
"Data Model"
1516
],
16-
"homepage": "https://github.com/zero-to-prod/data-model",
17-
"license": "MIT",
17+
"readme": "./README.md",
18+
"time": "2024-09-04",
1819
"authors": [
1920
{
2021
"name": "David Smith",
21-
"email": "dave0016@gmail.com"
22+
"email": "dave0016@gmail.com",
23+
"homepage": "https://davidsmith.blog/",
24+
"role": "maintainer"
25+
}
26+
],
27+
"homepage": "https://github.com/zero-to-prod/data-model",
28+
"support": {
29+
"email": "dave0016@gmail.com",
30+
"issues": "https://github.com/zero-to-prod/data-model/issues",
31+
"source": "https://github.com/zero-to-prod/data-model",
32+
"docs": "https://zero-to-prod.github.io/data-model/",
33+
"security": "https://github.com/zero-to-prod/data-model/blob/main/SECURITY.md"
34+
},
35+
"funding": [
36+
{
37+
"type": "GitHub",
38+
"url": "https://github.com/sponsors/zero-to-prod"
2239
}
2340
],
2441
"require": {
2542
"php": ">=8.1.0"
2643
},
44+
"require-dev": {
45+
"phpunit/phpunit": "^10.0"
46+
},
47+
"suggest": {
48+
"zero-to-prod/data-model-helper": "Helpers for a DataModel.",
49+
"zero-to-prod/data-model-factory": "Factoryies for a DataModel.",
50+
"zero-to-prod/transformable": "Transform a class into different types."
51+
},
2752
"autoload": {
2853
"psr-4": {
2954
"Zerotoprod\\DataModel\\": "src/"
@@ -37,12 +62,20 @@
3762
"./tests/functions.php"
3863
]
3964
},
40-
"require-dev": {
41-
"phpunit/phpunit": "^10.0"
65+
"scripts": {
66+
"test": [
67+
"docker compose run --rm php81 ./vendor/bin/phpunit"
68+
],
69+
"test-all": [
70+
"sh test.sh"
71+
],
72+
"docker": [
73+
"docker compose run --rm php81composer"
74+
]
4275
},
43-
"suggest": {
44-
"zero-to-prod/data-model-helper": "Helpers for a DataModel.",
45-
"zero-to-prod/data-model-factory": "Factoryies for a DataModel.",
46-
"zero-to-prod/transformable": "Transform a class into different types."
76+
"scripts-descriptions": {
77+
"test": "runs tests in the container",
78+
"test-all": "tests all php versions",
79+
"docker": "runs the composer container"
4780
}
4881
}

0 commit comments

Comments
 (0)