did-manager/composer.json
Namith Jawahar 4bee69334d Added easy way to test for minimum compatible php version
Added easy way to test for minimum compatible php version
2026-05-15 22:11:23 +05:30

54 lines
1.7 KiB
JSON

{
"name": "fairpm/did-manager",
"description": "Core PHP library for DID management, key handling, and PLC operations",
"license": "GPL-3.0-or-later",
"minimum-stability": "dev",
"prefer-stable": true,
"authors": [
{
"name": "FAIRPM",
"email": "info@fairpm.org"
}
],
"require": {
"php": ">=8.0",
"ext-curl": "*",
"ext-json": "*",
"simplito/elliptic-php": "^1.0",
"spomky-labs/cbor-php": "^3.1",
"yocto/yoclib-multibase": "^1.2"
},
"require-dev": {
"carthage-software/mago": "^1.0.0-rc.12",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"phpcompatibility/php-compatibility": "^9.3",
"phpunit/phpunit": "^10.0",
"squizlabs/php_codesniffer": "^3.7",
"roave/security-advisories": "dev-latest"
},
"autoload": {
"psr-4": {
"FAIR\\": "src/FAIR/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"analyze": "mago analyze",
"format": "mago format",
"lint": "mago lint",
"detect-min-php": "sh -c 'for v in 5.4 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4; do echo Testing PHP $v...; if docker run --rm -v \"$PWD:/app\" -w /app php:${v}-cli sh -c \"find . -type f -name \\\"*.php\\\" -not -path \\\"*/vendor/*\\\" -print0 | xargs -0 -n1 php -l\" >/dev/null 2>&1; then echo Minimum supported PHP version: $v; exit 0; fi; done; echo No supported PHP version detected; exit 1'"
},
"config": {
"allow-plugins": {
"carthage-software/mago": true,
"dealerdirect/phpcodesniffer-composer-installer": true
},
"notify-on-install": false,
"optimize-autoloader": true,
"sort-packages": true
}
}