woocommerce-paypal-payments/composer.json
Anton Ukhanev d4c8282518 Use Composer modules and convert modules to PSR-4
PSR-4 is much more robust and predictable. But to do this,
a source root dir must be specified for every module.
This could be done in the root file, but this is not very modular.
Instead, now every module declares its own source root by using
the amazing Composer Merge Plugin. This approach allows each module
to also declare its own dependencies. Together, these changes allow
modules to be easily extractable to separate pacakges when the need
arises, and in general improves modularity significantly.
2021-08-26 11:01:20 +02:00

61 lines
1.6 KiB
JSON

{
"name": "woocommerce/woocommerce-paypal-payments",
"type": "wordpress-plugin",
"description": "PayPal Commerce Platform for WooCommerce",
"license": "GPL-2.0",
"require": {
"php": "^7.1 | ^8.0",
"dhii/module-interface": "^0.2 || ^0.3",
"psr/container": "^1.0",
"container-interop/service-provider": "^0.4.0",
"dhii/containers": "^0.1.0-alpha1",
"dhii/wp-containers": "^0.1.0-alpha1",
"psr/log": "^1.1",
"ext-json": "*",
"ralouphie/getallheaders": "^3.0",
"wikimedia/composer-merge-plugin": "^1.4"
},
"require-dev": {
"woocommerce/woocommerce-sniffs": "^0.1.0",
"phpunit/phpunit": "^7.0 | ^8.0 | ^9.0",
"brain/monkey": "^2.4"
},
"autoload": {
"psr-4": {
"WooCommerce\\PayPalCommerce\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"WooCommerce\\PayPalCommerce\\": "tests/PHPUnit/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"ci": [
"vendor/bin/phpcs"
],
"unit": "./vendor/bin/phpunit --coverage-html build/coverage-report"
},
"extra": {
"installer-types": [
"inpsyde-module"
],
"installer-paths": {
"modules/{$name}/": [
"type:inpsyde-module"
]
},
"merge-plugin": {
"include": [
"modules/*/composer.json"
]
},
"hooks": {
"pre-commit": [
"vendor/bin/phpcbf"
]
}
}
}