composer.json 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {
  2. "name": "irdb/api",
  3. "description": "IRDB — JSON API backend (Slim 4 on FrankenPHP)",
  4. "type": "project",
  5. "license": "Apache-2.0",
  6. "authors": [
  7. {
  8. "name": "Alessandro Chiapparini",
  9. "email": "irdb@chiapparini.org"
  10. }
  11. ],
  12. "require": {
  13. "php": "^8.3",
  14. "doctrine/dbal": "^4.0",
  15. "geoip2/geoip2": "^3.0",
  16. "guzzlehttp/guzzle": "^7.8",
  17. "guzzlehttp/psr7": "^2.6",
  18. "monolog/monolog": "^3.5",
  19. "php-di/php-di": "^7.0",
  20. "robmorgan/phinx": "^0.16",
  21. "slim/psr7": "^1.6",
  22. "slim/slim": "^4.12"
  23. },
  24. "require-dev": {
  25. "phpunit/phpunit": "^11.0",
  26. "phpstan/phpstan": "^1.10",
  27. "friendsofphp/php-cs-fixer": "^3.0",
  28. "vlucas/phpdotenv": "^5.6"
  29. },
  30. "autoload": {
  31. "psr-4": {
  32. "App\\": "src/"
  33. }
  34. },
  35. "autoload-dev": {
  36. "psr-4": {
  37. "App\\Tests\\": "tests/"
  38. }
  39. },
  40. "config": {
  41. "sort-packages": true,
  42. "platform": {
  43. "php": "8.3"
  44. },
  45. "allow-plugins": {
  46. "php-http/discovery": true
  47. }
  48. },
  49. "scripts": {
  50. "test": "phpunit --exclude-group perf",
  51. "test-perf": "@php -d opcache.enable_cli=1 -d opcache.jit_buffer_size=64M -d opcache.jit=tracing vendor/bin/phpunit --group perf",
  52. "stan": "phpstan analyse --memory-limit=512M",
  53. "cs": "php-cs-fixer fix --dry-run --diff",
  54. "cs-fix": "php-cs-fixer fix",
  55. "openapi:build": "@php openapi.php > public/openapi.yaml"
  56. }
  57. }