Repository navigation
Expand file tree
/
Copy pathcomposer.json
More file actions
91 lines (91 loc) · 3.31 KB
/
Copy pathcomposer.json
File metadata and controls
91 lines (91 loc) · 3.31 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
88
89
90
91
{
"name": "lisachenko/userland-php-generics",
"description": "Reified generics for PHP: templates monomorphized into real class entries by the Zend Engine",
"type": "library",
"keywords": [
"generics",
"templates",
"monomorphization",
"reification",
"ffi",
"zend",
"engine"
],
"license": [
"MIT"
],
"authors": [
{
"name": "Alexander Lisachenko",
"email": "lisachenko.it@gmail.com"
}
],
"require": {
"php": "^8.4",
"ext-ffi": "*",
"lisachenko/z-engine": "~8.4.2 || ~8.5.0 || ~8.6.0@dev"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.75",
"phpstan/phpstan": "^2.1",
"phpunit/phpunit": "^12.2",
"phpstan/extension-installer": "^1.4"
},
"autoload": {
"psr-4": {
"Lisachenko\\Generics\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Lisachenko\\Generics\\": "tests/",
"Lisachenko\\Generics\\Benchmark\\": "benchmarks/"
},
"classmap": [
"tests/PHPStan/data/"
]
},
"scripts": {
"test": "phpunit",
"test:internal": "phpunit --group internal --process-isolation",
"bench": "php benchmarks/run.php",
"bench:smoke": "php benchmarks/run.php --smoke",
"phpstan": "phpstan analyse",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"cs:fix": "php-cs-fixer fix",
"test:analysis": "phpunit --testsuite analysis",
"stubs:generate": "php bin/generics-stubs --out=tests/phpstan/generated 'Lisachenko\\Generics\\Fixture\\Box' 'Lisachenko\\Generics\\Fixture\\AttributeBox' 'Lisachenko\\Generics\\Native\\NativeVector'",
"stubs:check": "php bin/generics-stubs --check --out=tests/phpstan/generated 'Lisachenko\\Generics\\Fixture\\Box' 'Lisachenko\\Generics\\Fixture\\AttributeBox' 'Lisachenko\\Generics\\Native\\NativeVector'",
"test:preload": "phpunit --testsuite engine --filter PreloadTest"
},
"scripts-descriptions": {
"test": "Run the test suite (destructive internal group excluded)",
"test:internal": "Run the destructive class-table eviction group; a debug build additionally reports leaks",
"bench": "Measure the cost of monomorphization and rewrite docs/benchmarks.md",
"bench:smoke": "Run every benchmark scenario at a tiny size so it cannot bit-rot",
"phpstan": "Run static analysis at the maximum level",
"cs:check": "Check coding standards without fixing",
"cs:fix": "Fix coding standards",
"test:analysis": "Run the PHPStan extension tests, which need no engine",
"stubs:generate": "Regenerate the committed PHPStan stubs for the placeholder-form templates",
"stubs:check": "Fail if the committed PHPStan stubs no longer match the generator",
"test:preload": "Boot preload.php in a child process; must run, never silently skip"
},
"prefer-stable": true,
"config": {
"sort-packages": true,
"allow-plugins": {
"phpstan/extension-installer": true
}
},
"extra": {
"phpstan": {
"includes": [
"extension.neon"
]
}
},
"bin": [
"bin/generics-stubs"
]
}