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": "http://www.dereuromark.de"
  13. }
  14. ],
  15. "require":{
  16. "php": ">=5.6",
  17. "cakephp/cakephp": "^3.7.0",
  18. "dereuromark/cakephp-shim": "^1.7.0",
  19. "ext-mbstring": "*"
  20. },
  21. "require-dev":{
  22. "cakephp/chronos": "^1.0.1",
  23. "mobiledetect/mobiledetectlib": "^2.8",
  24. "fig-r/psr2r-sniffer": "dev-master",
  25. "yangqi/htmldom": "^1.0"
  26. },
  27. "autoload": {
  28. "psr-4": {
  29. "Tools\\": "src/",
  30. "Tools\\Test\\Fixture\\": "tests/Fixture/"
  31. }
  32. },
  33. "autoload-dev": {
  34. "psr-4": {
  35. "Tools\\Test\\": "tests/",
  36. "Cake\\Test\\": "vendor/cakephp/cakephp/tests/",
  37. "Cake\\PHPStan\\": "vendor/cakephp/cakephp/tests/PHPStan/",
  38. "App\\": "tests/test_app/"
  39. }
  40. },
  41. "suggest": {
  42. "yangqi/htmldom": "For HtmlDom usage"
  43. },
  44. "support":{
  45. "source": "https://github.com/dereuromark/cakephp-tools",
  46. "issues": "https://github.com/dereuromark/cakephp-tools/issues"
  47. },
  48. "scripts": {
  49. "phpstan": "phpstan analyse -c tests/phpstan.neon -l 3 src/",
  50. "phpstan-setup": "cp composer.json composer.backup && composer require --dev phpstan/phpstan:^0.10.1 && mv composer.backup composer.json",
  51. "test": "php phpunit.phar",
  52. "test-setup": "[ ! -f phpunit.phar ] && wget https://phar.phpunit.de/phpunit-6.5.13.phar && mv phpunit-6.5.13.phar phpunit.phar || true",
  53. "test-coverage": "php phpunit.phar --log-junit webroot/coverage/unitreport.xml --coverage-html webroot/coverage --coverage-clover webroot/coverage/coverage.xml",
  54. "cs-check": "phpcs -p --standard=vendor/fig-r/psr2r-sniffer/PSR2R/ruleset.xml --extensions=php --ignore=/tests/test_files/ src/ tests/ config/",
  55. "cs-fix": "phpcbf -v --standard=vendor/fig-r/psr2r-sniffer/PSR2R/ruleset.xml --extensions=php --ignore=/tests/test_files/ src/ tests/ config/"
  56. },
  57. "config": {
  58. "process-timeout": 600
  59. }
  60. }