mirror of
http://124.126.16.154:8888/singularity/composer-template.git
synced 2026-01-15 00:35:08 +08:00
45 lines
1.0 KiB
JSON
Executable File
45 lines
1.0 KiB
JSON
Executable File
{
|
|
"name": "elliotjreed/php-package-boilperplate",
|
|
"license": "MIT",
|
|
"type": "project",
|
|
"description": "Example PHP package.",
|
|
"autoload": {
|
|
"psr-4": {
|
|
"Example\\": "src/Example/"
|
|
}
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"Tests\\Example\\": "tests/Example/"
|
|
}
|
|
},
|
|
"require": {
|
|
"php": "^8.0",
|
|
"composer/composer": "~2.0.14"
|
|
},
|
|
"require-dev": {
|
|
"phpunit/phpunit": "^9.5"
|
|
},
|
|
"minimum-stability": "dev",
|
|
"prefer-stable": true,
|
|
"config": {
|
|
"optimize-autoloader": true,
|
|
"sort-packages": true
|
|
},
|
|
"extra": [],
|
|
"scripts": {
|
|
"post-root-package-install": [
|
|
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
|
|
],
|
|
"test": "vendor/bin/phpunit --prepend test/bootstrap.php -c phpunit.xml --colors=always",
|
|
"cs-fix": "php-cs-fixer fix $1",
|
|
"analyse": "phpstan analyse --memory-limit 300M -l 0 -c phpstan.neon ./app ./config"
|
|
},
|
|
"repositories": {
|
|
"packagist": {
|
|
"type": "composer",
|
|
"url": "https://mirrors.aliyun.com/composer"
|
|
}
|
|
}
|
|
}
|