composer.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. "name": "dereuromark/cakephp-tools",
  3. "type": "cakephp-plugin",
  4. "description": "A CakePHP plugin containing lots of useful and reusable tools",
  5. "keywords": ["cakephp", "plugin", "tools", "utils", "helpers", "components", "behaviors", "datasources"],
  6. "homepage": "https://github.com/dereuromark/cakephp-tools",
  7. "license": "MIT",
  8. "authors": [
  9. {
  10. "name": "Mark Scherer",
  11. "role": "Author",
  12. "homepage": "https://www.dereuromark.de"
  13. }
  14. ],
  15. "require": {
  16. "php": ">=7.2",
  17. "cakephp/cakephp": "^4.1",
  18. "dereuromark/cakephp-shim": "^2.0.0"
  19. },
  20. "require-dev": {
  21. "cakephp/chronos": "^2.0",
  22. "mobiledetect/mobiledetectlib": "^2.8",
  23. "fig-r/psr2r-sniffer": "dev-master",
  24. "yangqi/htmldom": "^1.0"
  25. },
  26. "autoload": {
  27. "psr-4": {
  28. "Tools\\": "src/",
  29. "Tools\\Test\\Fixture\\": "tests/Fixture/"
  30. }
  31. },
  32. "autoload-dev": {
  33. "psr-4": {
  34. "Tools\\Test\\": "tests/",
  35. "Cake\\Test\\": "vendor/cakephp/cakephp/tests/",
  36. "Cake\\PHPStan\\": "vendor/cakephp/cakephp/tests/PHPStan/",
  37. "TestApp\\": "tests/test_app/"
  38. }
  39. },
  40. "suggest": {
  41. "yangqi/htmldom": "For HtmlDom usage"
  42. },
  43. "support": {
  44. "source": "https://github.com/dereuromark/cakephp-tools",
  45. "issues": "https://github.com/dereuromark/cakephp-tools/issues"
  46. },
  47. "scripts": {
  48. "stan": "phpstan analyse",
  49. "stan-setup": "cp composer.json composer.backup && composer require --dev phpstan/phpstan:^0.12.1 && mv composer.backup composer.json",
  50. "test": "php phpunit.phar",
  51. "test-setup": "[ ! -f phpunit.phar ] && wget https://phar.phpunit.de/phpunit-8.5.1.phar && mv phpunit-8.5.1.phar phpunit.phar || true",
  52. "test-coverage": "php phpunit.phar --log-junit webroot/coverage/unitreport.xml --coverage-html webroot/coverage --coverage-clover webroot/coverage/coverage.xml",
  53. "cs-check": "phpcs -p -s --standard=vendor/fig-r/psr2r-sniffer/PSR2R/ruleset.xml --extensions=php --ignore=/config/Migrations/,/tests/test_files/ src/ tests/ config/",
  54. "cs-fix": "phpcbf -p --standard=vendor/fig-r/psr2r-sniffer/PSR2R/ruleset.xml --extensions=php --ignore=/config/Migrations/,/tests/test_files/ src/ tests/ config/"
  55. },
  56. "prefer-stable": true,
  57. "config": {
  58. "process-timeout": 600
  59. }
  60. }