Skip to content

Commit 68cf384

Browse files
committed
Add composer package config
1 parent 1979b84 commit 68cf384

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

composer.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"name": "mongodb/builder",
3+
"description": "MongoDB driver query and aggregation builders",
4+
"keywords": ["database", "driver", "mongodb", "persistence"],
5+
"homepage": "https://jira.mongodb.org/browse/PHPLIB",
6+
"license": "Apache-2.0",
7+
"authors": [
8+
{ "name": "Andreas Braun", "email": "[email protected]" },
9+
{ "name": "Jeremy Mikola", "email": "[email protected]" },
10+
{ "name": "Jérôme Tamarelle", "email": "[email protected]" }
11+
],
12+
"require": {
13+
"php": "^8.1"
14+
},
15+
"require-dev": {
16+
"doctrine/coding-standard": "^11.1",
17+
"rector/rector": "^0.16.0",
18+
"squizlabs/php_codesniffer": "^3.7",
19+
"symfony/phpunit-bridge": "^5.2",
20+
"vimeo/psalm": "^5.13"
21+
},
22+
"autoload": {
23+
"psr-4": { "MongoDB\\": "src/" }
24+
},
25+
"autoload-dev": {
26+
"psr-4": {
27+
"MongoDB\\Tests\\": "tests/"
28+
}
29+
},
30+
"scripts": {
31+
"checks": [
32+
"@check:cs",
33+
"@check:psalm",
34+
"@check:rector"
35+
],
36+
"check:cs": "phpcs",
37+
"check:psalm": "psalm",
38+
"check:rector": "rector --ansi --dry-run",
39+
"fix:cs": "phpcbf",
40+
"fix:psalm:baseline": "psalm --set-baseline=psalm-baseline.xml",
41+
"fix:rector": "rector process --ansi",
42+
"test": "simple-phpunit"
43+
},
44+
"config": {
45+
"allow-plugins": {
46+
"dealerdirect/phpcodesniffer-composer-installer": true
47+
},
48+
"sort-packages": true
49+
}
50+
}

0 commit comments

Comments
 (0)