php-tenant/composer.json
Claude 17157da2bd
test: add mutation testing with Infection PHP
- Add infection/infection ^0.29 to require-dev
- Create infection.json5 with sensible defaults matching phpstan source dirs
- Add composer mutate script for running mutation tests
- Add infection/extension-installer to allowed plugins
- Update .gitignore for infection output files

Fixes #34

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 13:49:27 +00:00

64 lines
1.4 KiB
JSON

{
"name": "lthn/php-tenant",
"description": "Multi-tenancy and workspaces for Laravel",
"keywords": [
"multi-tenant",
"workspaces",
"teams"
],
"license": "EUPL-1.2",
"require": {
"php": "^8.2",
"lthn/php": "*"
},
"require-dev": {
"infection/infection": "^0.29",
"larastan/larastan": "^3.0",
"laravel/pint": "^1.18",
"orchestra/testbench": "^9.0|^10.0",
"pestphp/pest": "^3.0"
},
"autoload": {
"psr-4": {
"Core\\Tenant\\": ""
}
},
"autoload-dev": {
"psr-4": {
"Core\\Tenant\\Tests\\": "Tests/",
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"providers": [
"Core\\Tenant\\Boot"
]
}
},
"scripts": {
"analyse": "phpstan analyse",
"lint": "pint",
"mutate": "infection --show-mutations --threads=max",
"test": "pest"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"infection/extension-installer": true,
"pestphp/pest-plugin": true
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"repositories": [
{
"name": "core",
"type": "path",
"url": "../php"
}
],
"replace": {
"core/php-tenant": "self.version"
}
}